Return Images & Binary Blobs
Send non-text content back through a tool.
Beyond Text and JSON
Some tools produce pictures or files, not words. MCP can return binary content like images and other blobs, not just text.
The Image Content Type
MCP defines an image content type carrying the raw bytes plus a media type. Clients that support it can render the picture directly. 🖼️
All lessons in this course
- Text vs Structured Content
- Return a Typed Result Object
- Output Schemas for Clients
- Return Images & Binary Blobs