resize_viewport
Set a browser tab's viewport dimensions in CSS pixels, such as 390x844 for phone testing, to verify responsive layouts.
Instructions
Set the tab's viewport size in CSS pixels (e.g. 390x844 for phone).
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": {
"tabId": "<tabId>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab id from tabs_context | |
| width | Yes | ||
| height | Yes |