Skip to content

fix: resize MCP screenshots to max 2000px - #894

Closed
Fizza-Mukhtar wants to merge 1 commit into
trycua:mainfrom
Fizza-Mukhtar:fix/mcp-screenshot-resize
Closed

fix: resize MCP screenshots to max 2000px#894
Fizza-Mukhtar wants to merge 1 commit into
trycua:mainfrom
Fizza-Mukhtar:fix/mcp-screenshot-resize

Conversation

@Fizza-Mukhtar

Copy link
Copy Markdown
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

vercel Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

@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