Prefer raw CallToolResult, ReadResourceResult, or GetPromptResult returns. These helpers remain for upgrade compatibility and map to the official wire envelopes.
Create an image content tool result.
Base64 image data (or data URL payload).
Image MIME type.
Tool result with an image content block.
Prefer { content: [{ type: "image", data, mimeType }] }.
{ content: [{ type: "image", data, mimeType }] }
mimeType - "image/png"
"image/png"
Deprecated
Prefer raw CallToolResult, ReadResourceResult, or GetPromptResult returns. These helpers remain for upgrade compatibility and map to the official wire envelopes.