pub fn preview_tool_output(name: &str, value: &Value) -> StringExpand 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.