resize_window
Set a tab's viewport to specific width and height CSS pixels to test phone or responsive layouts without resizing the browser window.
Instructions
Set a tab's viewport to width x height CSS pixels (200 to 4000 each), e.g. to check a phone layout.
Only the page inside that tab changes size; Zen's window stays as it is. The size stays through
reloads and navigations in the tab, even after zenpilot disconnects, until you call resize_window
without width and height. Do that when you're done.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resize_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| tab_id | No |