set_viewport
Resize the browser viewport to test responsive layouts, optionally wait for a selector, and return updated diagnostics.
Instructions
Set a bounded viewport and optionally wait for a responsive-layout completion selector. Returns new diagnostics.
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": "set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| wait_for | No | ||
| session_id | Yes | ||
| timeout_ms | No |