set_viewport_size
Sets the viewport width and height in pixels for the currently selected Firefox tab, enabling precise layout and responsive testing.
Instructions
Set viewport dimensions in pixels. Applies to the selected tab only.
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_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width in pixels | |
| height | Yes | Height in pixels |