browser_resize
Resize a browser window to specified dimensions during automated testing, ensuring consistent viewport for parallel browser sessions.
Instructions
Resize the browser window
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": {
"sessionId": "<sessionId>",
"width": "<width>",
"height": "<height>"
},
"name": "browser_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width of the browser window | |
| height | Yes | Height of the browser window | |
| sessionId | Yes | The session ID to use for this operation |