set_viewport
Override the visible viewport dimensions by specifying width, height, device scale factor, and mobile mode.
Instructions
Override the visible viewport dimensions.
``width`` / ``height`` in CSS pixels. ``device_scale_factor`` is DPR
(1.0 for standard, 2.0 for Retina, etc.). ``mobile`` toggles the
meta-viewport / overlay-scrollbar behaviour.
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": "set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| mobile | No | ||
| device_scale_factor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |