MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / print_tool_output

Function print_tool_output

src/tool_command.rs:291–300  ·  view source on GitHub ↗
(result_value: &Value, raw_json: bool)

Source from the content-addressed store, hash-verified

289}
290
291fn print_tool_output(result_value: &Value, raw_json: bool) {
292 if raw_json {
293 println!(
294 "{}",
295 serde_json::to_string_pretty(result_value).unwrap_or_default()
296 );
297 } else {
298 println!("{}", join_content_text(result_value));
299 }
300}
301
302/// Joins every `content[*].text` block in an MCP tool result, separated by a
303/// blank line. Handlers sometimes prepend a warning/notice block ahead of the

Callers 1

dispatch_daemon_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected