[BUG] Figma returns PNG, but CC API expect JPG resulting in ERROR 400.

Resolved 💬 6 comments Opened Nov 21, 2025 by hamardikan Closed Jan 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When i am using Figma MCP this happens :

  • When mcp__figma__get_screenshot returns a PNG image,

Claude Code sets media_type: "image/jpeg" instead of
"image/png"

  • This causes API error 400: "Image does not match the

provided media type image/jpeg"

  • The error persists in conversation history, blocking

all subsequent messages

screenshot :

<img width="946" height="314" alt="Image" src="https://github.com/user-attachments/assets/a17ac1d0-209a-4fff-adcc-b565fc051c39" />

What Should Happen?

It should Succeed. and CC got the Image context.

Error Messages/Logs

API Error: 400 
    {"type":"error","error":{"type":"invalid_request_error","message":"messages.19.content.5.image.source.base64.data: Image does 
    not match the provided media type image/jpeg"},"request_id":"req_011CVLgquwJJaU9DK3S3vd9Q"}

Steps to Reproduce

  1. Use Screenshot feature in figma MCP.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.49

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗