Skip to main content

preview_tool_output

Function preview_tool_output 

Source
pub fn preview_tool_output(name: &str, value: &Value) -> String
Expand description

Formats a tool result using the same compact preview renderer as the CLI.

name is the tool name, and value is the JSON result payload returned by that tool. The output is intended for humans and may change with CLI presentation improvements; do not treat it as a stable machine-readable format.