browser_resize
Resize browser viewport to specified width and height, supporting tab selection for coordinated multi-agent testing.
Instructions
Resize the browser viewport.
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_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Viewport width in pixels. | |
| height | Yes | Viewport height in pixels. | |
| tab_id | No | Stable tab id from browser_tabs list; preferred when multiple agents run in parallel. Mutually exclusive with tab_index. | |
| tab_index | No | Tab index from browser_tabs list. If omitted, uses the lowest-index tab. Mutually exclusive with tab_id. |