Set viewport
browser_set_viewportResize the browser viewport for responsive testing. Use desktop, mobile, or tablet presets, or set a custom width and height to check layouts at any screen size.
Instructions
Resize the browser viewport. Presets: desktop (1280x800), mobile (390x844, touch emulation), tablet (820x1180). Or pass custom width/height.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Custom width in px | |
| height | No | Custom height in px | |
| preset | No | Preset size |