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
I would love to see support for MCP tool responses that contain images, according to the MCP specification .
By "support" I mean "let the model see the content of the images". I'm not talking about rendering images in the terminal or anything like this, just have an agent iterating over tools that respond with images (or combinations of images and text).
Additional information
I added experimental_use_rmcp_client = true to the config, and if I use an MCP tool that returns an image it shows something like this in codex:
• Called my-mcp-test.get_image({})
└ <image content>
However the model can't "see" the image, and the base64 content is consumed as is. I tried to order it write the base64 to a file and run shell commands to decode it to a new .jpg file, but it took minutes of reasoning before it failed.
The only workaround I found was to change my MCP server tool to save the image file, and then use the view_image tool in codex to view the file.
Last time I checked this is also unsupported via the Responses API.
• Called my-mcp-test.get_image({})
└ <image content>
tool result (image output omitted)
─ Worked for 7s ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
• The image shows a smiling man with short brown hair standing in a bright, neatly kept bedroom. He’s mid-motion, as if dancing or
jogging in place, wearing a gray T-shirt and blue jeans. Behind him is a neatly made white bed, a wooden nightstand with a small white
lamp, and soft blue walls with a window letting in natural light. The overall scene feels upbeat and homey.
Activity
asaf92 commentedon Oct 7, 2025
Tested and confirmed that #4391 solves this:
gpeal commentedon Oct 18, 2025
Thanks for flagging the PR @asaf92. Let's get this across the finish line.
[MCP] Render MCP tool call result images to the model (openai#5600)
[MCP] Render MCP tool call result images to the model (openai#5600)
[MCP] Render MCP tool call result images to the model (openai#5600)
[MCP] Render MCP tool call result images to the model (openai#5600)
[MCP] Render MCP tool call result images to the model (openai#5600)
anamhira47 commentedon Feb 20, 2026
did this get fixed at any point?
powellnorma commentedon Jul 17, 2026
@anamhira47 I think the corresponding PR #5600 got merged on Oct 27, 2025. Is it still not working for you?
Handle MCP image resources as image assets
Web-page images for the agent, on every model source; v0.2.13