mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-25 15:37:30 +08:00
MCP tools return list[ContentElement] Pydantic models. The CALL_TOOL handler passed them through unserialized for both Runner (`result`) and plugin (`tool_response`) calls, so the Execution API's strict JsonValue output check failed with "Output does not match call_tool". Serialize with _serialize_plugin_api_result, as the platform-tool branch already did. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>