Repository navigation
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Bug
browser action=screenshot returns a union validation error on content[1] (the image block).
Repro
browser action=screenshot profile=openclaw
Returns:
Invalid input: expected string, received undefined — path: content[1].data
Invalid input: expected string, received undefined — path: content[1].mimeType
Root Cause
imageResult() in common-CQZwSsYR.js (lines ~238-246) builds the image content block as:
{ type: "image", data: base64, mimeType: "image/png" }But the MCP SDK now expects the newer format:
{ type: "image", source: { type: "base64", media_type: "image/png", data: base64 } }The isImageBlock() validator in tool-images-BO1Itut2.js also uses the old shape.
Workaround
browser action=pdf works (returns a file reference instead of inline base64).
Environment
- OpenClaw: 2026.6.1
- macOS Darwin 25.4.0 (arm64)
- Node: v25.9.0
- Browser: Chrome via CDP
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 2:26 PM ET / 18:26 UTC.
Summary
Keep open. Current main and the latest release still leave the MCP plugin-tools result boundary without source-shaped image normalization, and the open closing-reference PR is the active fix candidate.
Reproducibility: yes. for the MCP boundary when a plugin tool returns source-shaped image content: current main passes array content through and the pinned SDK 1.29.0 schema expects top-level
data/mimeType. No for the exact live browser command, because this read-only review did not run Chrome/CDP and current screenshot source emits top-level image blocks.Root-cause cluster
Relationship:
canonicalCanonical: #90743
Summary: This issue is the canonical narrow report for browser screenshot MCP content validation; the open PR is the active candidate fix and broader MCP binary relay work remains adjacent.
Members:
fixed_by_candidate: fix(mcp): include image source for screenshot results #90902 - The PR has live closing syntax for this issue and changes the implicated MCP plugin-tools serialization boundary.partial_overlap: [Feature]: First-class relay of MCP ImageContent (and other binary Content) to channel extensions (iMessage/BlueBubbles, Telegram, Signal, …) #87023 - That issue covers broader first-class relay of MCP binary content to channel extensions, while this issue is the narrower validation failure.partial_overlap: HTTP MCP gateway strips image/audio/resource fields from tool results (normalizeToolCallContent) #68037 - That closed issue covered HTTP MCP gateway stripping non-text content fields on a different transport path.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
No new repair lane should be queued while the open closing-reference PR remains the active implementation candidate.
Review details
Best possible solution:
Review and land or reject #90902, then close this issue only after the chosen fix is merged and verified against the pinned SDK result contract.
Do we have a high-confidence way to reproduce the issue?
Yes for the MCP boundary when a plugin tool returns source-shaped image content: current main passes array content through and the pinned SDK 1.29.0 schema expects top-level
data/mimeType. No for the exact live browser command, because this read-only review did not run Chrome/CDP and current screenshot source emits top-level image blocks.Is this the best way to solve the issue?
Yes, the active linked PR targets the plugin-tools MCP serialization boundary rather than screenshot capture or user configuration. The final shape should follow the pinned SDK contract unless maintainers choose a broader MCP SDK migration.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
browser action=screenshot profile=openclawpath was not replayed, and current source emits top-leveldata/mimeTypefor that screenshot helper.Codex review notes: model internal, reasoning high; reviewed against bda05dbc2f15.
Label changes
Label justifications:
P2: This is a normal-priority MCP screenshot/content validation bug with a bounded plugin-tools bridge blast radius and an open focused fix PR.impact:other: The issue affects MCP tool-result interoperability for image content, which is maintainer-visible but outside the narrower owned impact categories.Evidence reviewed
What I checked:
createPluginToolsMcpHandlers().callTool()returns arrayrawContentunchanged, so any source-shaped image block from a plugin tool can reach the MCP result boundary without normalization. (src/mcp/plugin-tools-handlers.ts:61, bda05dbc2f15)createToolsMcpServer()wiresCallToolRequestSchemadirectly to the plugin-tools handler, making this the relevant MCP client result path. (src/mcp/tools-stdio-server.ts:17, bda05dbc2f15)@modelcontextprotocol/sdkto 1.29.0, whose inspected tarball defines image content with top-leveldataandmimeTypeand uses it inCallToolResultSchema.content. (package.json:1943, bda05dbc2f15)imageResultFromFile(), andimageResult()emits{ type: "image", data, mimeType }, so the exact live browser reproduction still needs runtime confirmation. (extensions/browser/src/browser-tool.ts:889, bda05dbc2f15)v2026.6.9still returns arrayrawContentunchanged at the same handler boundary. (src/mcp/plugin-tools-handlers.ts:61, c645ec4555c0)Likely related people:
src/mcp/plugin-tools-handlers.ts,src/mcp/plugin-tools-serve.test.ts,src/mcp/tools-stdio-server.ts)src/mcp/plugin-tools-handlers.ts,src/mcp/plugin-tools-serve.test.ts,src/mcp/tools-stdio-server.ts)src/mcp/plugin-tools-handlers.ts,src/mcp/plugin-tools-serve.test.ts)extensions/browser/src/browser-tool.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Jun 26, 2026
Fixed on
mainby #90902 ina846b879ecd9.Verification covered the pinned MCP SDK image schema plus a real in-memory MCP client/server round trip (9 focused tests), followed by green exact-head hosted CI.