browser_resize_window
Resize a browser window to specific CSS pixel dimensions for testing responsive layouts or framing recordings. Restore original size after use.
Instructions
Resize the browser window that contains the tab to width×height CSS pixels. Mutating and user-visible: it resizes the user's real window. Use for reproducing responsive layouts or framing a recording, and consider restoring the original size afterwards.
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": {
"tabId": "<tabId>",
"width": "<width>",
"height": "<height>"
},
"name": "browser_resize_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | tab id from browser_tabs_list or browser_tab_create | |
| width | Yes | window width, CSS px | |
| height | Yes | window height, CSS px |