browser_resize
Resize the active browser page viewport to a specified width and height, optionally targeting a specific session, so AI agents can test responsive layouts and emulated screen sizes.
Instructions
Resize the active browser page viewport in the target session.
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. | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). |