set_viewport_size
Adjust browser viewport dimensions to specific width and height in pixels for responsive testing and layout verification.
Instructions
Set the browser viewport size (width x height in pixels). In some modes (e.g., headless), the actual size may vary slightly.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | Yes | Viewport height in pixels | |
width | Yes | Viewport width in pixels |
Input Schema (JSON Schema)
{
"properties": {
"height": {
"description": "Viewport height in pixels",
"type": "number"
},
"width": {
"description": "Viewport width in pixels",
"type": "number"
}
},
"required": [
"width",
"height"
],
"type": "object"
}