Skip to content

Image Responses from MCP tool calls #4819

Closed

Description

@asaf92

What feature would you like to see?

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.

Activity

  1. added
    enhancement
    on Oct 6, 2025
  2. added
    mcp
    on Oct 6, 2025
  3. asaf92 commented on Oct 7, 2025

    @asaf92
    Author

    Tested and confirmed that #4391 solves this:

    • 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.
    
  4. gpeal commented on Oct 18, 2025

    @gpeal
    Contributor

    Thanks for flagging the PR @asaf92. Let's get this across the finish line.

  5. self-assigned this
    on Oct 18, 2025
  6. added a commit that references this issue on Oct 27, 2025
    b0bdc04
  7. added a commit that references this issue on Oct 28, 2025
    4da9d8c
  8. added a commit that references this issue on Nov 10, 2025
    84e7572
  9. added a commit that references this issue on Nov 14, 2025
    3b19e61
  10. added a commit that references this issue on Dec 2, 2025
    a7d4d78
  11. anamhira47 commented on Feb 20, 2026

    @anamhira47

    did this get fixed at any point?

  12. powellnorma commented on Jul 17, 2026

    @powellnorma

    @anamhira47 I think the corresponding PR #5600 got merged on Oct 27, 2025. Is it still not working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmcp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions