Skip to main content

tool_result_to_string

Function tool_result_to_string 

Source
pub fn tool_result_to_string(result: &CallToolResult) -> String
Expand description

Convert MCP tool result to a compact text representation.

Runtime tool execution uses [project_tool_result] so image bytes and structured data are retained. This helper remains for diagnostics and compatibility callers that explicitly need text only.