set_viewport
Adjust the viewport dimensions and properties, such as width, height, device scale factor, and mobile emulation, to simulate different screen sizes and device behaviors in Chrome for testing or debugging.
Instructions
Set the viewport size and properties
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deviceScaleFactor | No | Device scale factor | |
height | Yes | Viewport height in pixels | |
isMobile | No | Whether to emulate mobile device | |
width | Yes | Viewport width in pixels |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Chrome Debug MCP Server
Related Tools
- @merajmehrabi/puppeteer-mcp-server
- @nicholmikey/chrome-tools-MCP
- @mobile-next/mobile-mcp
- @robertheadley/chrome-debug-mcp
- @robertheadley/chrome-debug-mcp