Confusing error with saved screenshot

Resolved 💬 2 comments Opened Mar 1, 2025 by valentinozegna Closed Mar 18, 2025

Bug Description
I tried to place a screenshot in a directory called screenshots/ and asked Claude to review it. I got this error and Claude Code completely stopped responding to me, everything I ask I get this error back: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.92.content.0.tool_result.content.0.
image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'"}}
It would be really awesome if Claude could see my app screenshots placed in a dedicated location

Environment Info

  • Platform: macos
  • Terminal: xterm-256color
  • Version: 0.2.29
  • Feedback ID: 3f8b12bd-11b2-4959-a010-8285d4e2c997

View original on GitHub ↗

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