Skip to content

resize_page fails with Protocol error: Browser.setContentsSize wasn't found #645

@Platano78

Description

@Platano78

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

  1. Navigate to any page using navigate_page
  2. Call resize_page with mobile dimensions:
resize_page(width=414, height=896)
  1. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions