browser_setViewport
Set the browser viewport width and height for responsive testing; reset the override to restore the default window size.
Instructions
Change the viewport size (width × height) for responsive testing. Defaults to 1280×720. Pass reset:true to clear the override.
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_setViewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Clear the override and return to the window size | |
| width | No | Viewport width in pixels (default 1280) | |
| height | No | Viewport height in pixels (default 720) |