browser_resize
Resize the Safari browser window that contains a tab by setting its width and height, so you can test layouts or fit pages to a specific viewport.
Instructions
Resize the browser window that contains the tab.
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 |
|---|---|---|---|
| tabId | No | Tab id from browser_tabs. Default: current tab. | |
| width | Yes | ||
| height | Yes | ||
| backend | No | Backend: real = your Safari, driver = isolated safaridriver session. Default: session default. |