-
Notifications
You must be signed in to change notification settings - Fork 992
Open
Description
Description
When calling resize_page to test mobile viewports, the command fails with a protocol error.
Error Message
Protocol error (Browser.setContentsSize): 'Browser.setContentsSize' wasn't found
Environment
- Chrome DevTools MCP version: Latest (installed via Claude Code)
- Chrome version: Unknown (remote debugging)
- Platform: Linux (WSL2)
- Claude Code: CLI
Steps to Reproduce
- Navigate to any page using
navigate_page - Call
resize_pagewith mobile dimensions:
resize_page(width=414, height=896)
- Observe protocol error
Expected Behavior
Page viewport should resize to specified dimensions for mobile testing.
Actual Behavior
Command fails with Browser.setContentsSize not found error.
Workaround
Currently using emulate for CPU/network throttling, but cannot test mobile viewport sizes.
Additional Context
This appears to be a Chrome DevTools Protocol compatibility issue - Browser.setContentsSize may not be available in all Chrome versions or may have been deprecated.
Filed from Claude Code session
Metadata
Metadata
Assignees
Labels
No labels