调整视口
browser_resizeResize the browser viewport to set a precise content area (200–5000 px) for responsive-design checks, then capture a snapshot or screenshot to review the adapted layout.
Instructions
Resize the browser window content area (200–5000). Useful for responsive-design checks; then take browser_snapshot or browser_screenshot to see the adapted layout.
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 |
|---|---|---|---|
| width | Yes | Content width in px (200–5000) | |
| height | Yes | Content height in px (200–5000) |