Skip to main content

format_tool_output

Function format_tool_output 

Source
pub fn format_tool_output(output: &str) -> String
Expand description

Format tool output for human-facing clients.

When the output is a JSON value serialized into a string, it is rendered with the same compact, label-oriented shape as tool inputs. Plain text output is preserved.