browser_set_viewport
Resize the browser viewport to test responsive or mobile layouts by specifying width and height in pixels.
Instructions
Resize the browser viewport to test responsive / mobile layouts.
Call this at any point during a session to switch between breakpoints.
Common presets: 390×844 — iPhone 14 375×667 — iPhone SE 360×800 — Samsung Galaxy S21 768×1024 — iPad 1280×800 — laptop 1920×1080 — desktop full-HD
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"width": "<width>",
"height": "<height>"
},
"name": "browser_set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Viewport width in pixels | |
| height | Yes | Viewport height in pixels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |