Skip to main content

bounded_tool_input

Function bounded_tool_input 

Source
fn bounded_tool_input(input: &Value) -> Value
Expand description

A tool call’s input, kept structured but bounded: each top-level string is cut to MAX_INPUT_FIELD_CHARS, and a nested array/object whose JSON is longer becomes that JSON, cut the same way.

Which field to show is decided by the frontend’s toolDetail (frontend/app/view/agent/tool-meta/tool-descriptors.ts), the same rule the agent pane uses, so the Swarm feed can’t drift from it.