Skip to content

Conversation

@Fizza-Mukhtar
Copy link
Contributor

Problem:
The MCP server was returning screenshots exceeding Claude API max dimension (2000px), causing 400 errors.

Solution:

  • Added a resize step before returning screenshots
  • Images are scaled proportionally if width or height > 2000px
  • Prevents API errors and preserves aspect ratio

Fixes #884

@vercel
Copy link
Contributor

vercel bot commented Jan 22, 2026

@Fizza-Mukhtar is attempting to deploy a commit to the Cua Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP screenshot returns images exceeding API max dimension limit (2000px)

1 participant