You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP tool results silently drop every non-text content block #823
internal/mcp/client.go:24-27. There is no data, mimeType, resource or annotations, and CallToolResult (:29-32) has no structuredContent. TextContent (:443-451) keeps only blocks where Type == "text" and drops everything else.
So a server returning an image, audio, an embedded resource, or structured content produces (empty MCP tool result). Browser and screenshot MCP servers are the common case: the tool call succeeds, the server returns a perfectly good image, and the model is told nothing came back. It then usually retries, which is the worst outcome.
Two parts, and the first is worth doing alone:
Stop silently dropping. If a result contains only non-text blocks, say what they were (returned 1 image/png block, which Zero cannot yet forward) instead of reporting empty. Prevents the retry loop even before we can carry the payload.
Carry image blocks through. We already have the plumbing: zeroruntime.ImageBlock and Message.Images, plus normalisation in internal/imageinput. This is gated on tool results having an image channel at all, which is a separate issue.
Approved. Verified against current main: Content is still exactly {Type, Text} with no data, mimeType, resource or annotations, and CallToolResult has no structuredContent. TextContent keeps only Type == "text" blocks, so an image, audio, embedded resource, or structured result reaches the model as an empty tool result rather than as an error.
The silence is the worst part: a server behaving correctly to spec looks broken with no diagnostic.
Status check while triaging, so nobody redoes the first half: part 1 has landed.027a6708 ("fix(mcp): name the non-text blocks a tool result drops") added DroppedContentSummary and wired it into registryTool.Run, so an image-only result now reads as
[zero] this server returned 1 image/png block, which Zero cannot forward yet. Retrying cannot recover this payload.
rather than (empty MCP tool result). Content also carries MimeType now, which is what lets the summary name the block. TestDroppedContentSummaryNamesTheBlocks passes on main at 99721c7.
So the retry loop this issue is most worried about is closed. What is left is part 2, carrying image blocks through: Content still has no data field and CallToolResult still has no structuredContent, so the payload is described but not delivered.
Leaving the issue open for that; just flagging it so the next person starts from part 2 rather than re-adding the summary.
Activity
fix(mcp): name the non-text blocks a tool result drops (#874)
Vasanthdev2004 commentedon Aug 12, 2026
Approved. Verified against current
main:Contentis still exactly{Type, Text}with nodata,mimeType,resourceorannotations, andCallToolResulthas nostructuredContent.TextContentkeeps onlyType == "text"blocks, so an image, audio, embedded resource, or structured result reaches the model as an empty tool result rather than as an error.The silence is the worst part: a server behaving correctly to spec looks broken with no diagnostic.
fix(mcp): forward image tool results on the existing image channel
fix(tui): snapshot provider models before command and prioritize acti…
Avoid mutating shared model variable in discovery race test
Address review feedback on MCP image forwarding and capability discovery
Bound MCP image counts and recognize supported local vision models.
fix(mcp): bound candidate image inspection and align vision recovery …
fix(mcp): forward image tool results on the existing image channel
fix(tui): snapshot provider models before command and prioritize acti…
Avoid mutating shared model variable in discovery race test
Address review feedback on MCP image forwarding and capability discovery
Bound MCP image counts and recognize supported local vision models.
fix(mcp): bound candidate image inspection and align vision recovery …
fix(tui): qualify authoritative discovery by active endpoint
fix(acp,mcp): preserve clean user history and remove unused writer he…
fix(mcp,tui): relocate test-only helpers and restore escalation comment
Vasanthdev2004 commentedon Sep 24, 2026
Status check while triaging, so nobody redoes the first half: part 1 has landed.
027a6708("fix(mcp): name the non-text blocks a tool result drops") addedDroppedContentSummaryand wired it intoregistryTool.Run, so an image-only result now reads asrather than
(empty MCP tool result).Contentalso carriesMimeTypenow, which is what lets the summary name the block.TestDroppedContentSummaryNamesTheBlockspasses onmainat 99721c7.So the retry loop this issue is most worried about is closed. What is left is part 2, carrying image blocks through:
Contentstill has nodatafield andCallToolResultstill has nostructuredContent, so the payload is described but not delivered.Leaving the issue open for that; just flagging it so the next person starts from part 2 rather than re-adding the summary.