pub fn tool_result_to_string(result: &CallToolResult) -> StringExpand 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.