browser_set_viewport
Adjust the browser viewport size and device scale factor to control content display and scaling for responsive design testing.
Instructions
Change the browser's viewport size and scale factor
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": "browser_set_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Viewport width in pixels | |
| height | No | Viewport height in pixels | |
| deviceScaleFactor | No | Device scale factor (affects how content is scaled) |