browser_set_viewport
Emulate screen sizes to test responsive layouts with presets or custom dimensions; reset to restore the real browser window.
Instructions
Emulate a screen size to test responsive layouts: preset "mobile" (390x844), "mobile-small" (360x640), "tablet" (820x1180), "laptop" (1366x768), "desktop" (1440x900), "desktop-hd" (1920x1080), or custom width/height. reset:true restores the real window.
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 |
|---|---|---|---|
| reset | No | ||
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| width | No | ||
| height | No | ||
| mobile | No | ||
| preset | No | ||
| deviceScaleFactor | No |