browser_set_viewport
Set the browser viewport to specific width and height dimensions, up to 3840x2160, for testing responsive designs across various screen sizes.
Instructions
Set an arbitrary viewport size on the current browser session (width/height integers; max 3840x2160). Requires lease_id.
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": {
"lease_id": "<lease_id>",
"width": "<width>",
"height": "<height>"
},
"name": "browser_set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| lease_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||