Resize the viewport
browser_resizeSet the browser viewport width and height in CSS pixels to test mobile or desktop layouts, then reset to restore the original window size.
Instructions
Set the page viewport to a width and height in CSS pixels, e.g. 375×812 to check a mobile layout. This resizes the user's real window: call with reset: true when done to put it back.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Put the window back to its size before Deputy first resized it. | |
| tabId | No | ||
| width | No | ||
| height | No |