Browser set viewport
browser_set_viewportSet the viewport size for a browser debug session to control snapshot and screenshot dimensions.
Instructions
Set the viewport size for a browser debug session page before snapshot or screenshot checks.
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": {
"session_id": "<session_id>",
"width": "<width>",
"height": "<height>"
},
"name": "browser_set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| session_id | Yes |