browser_emulate
Emulate a mobile device or custom viewport dimensions on the active browser page. Reset to restore the default desktop viewport.
Instructions
Emulate a device/viewport on the active page. Pass a device preset, or custom width+height. reset: true restores a desktop viewport. For network conditions use browser_throttle instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Restore the default desktop viewport and clear emulation. | |
| width | No | Custom viewport width in CSS pixels (with height). | |
| device | No | Device preset to emulate. Use this OR width+height. | |
| height | No | Custom viewport height in CSS pixels (with width). | |
| mobile | No | Emulate a mobile device (touch + mobile UA hints). Default false. | |
| userAgent | No | Override the User-Agent string. | |
| deviceScaleFactor | No | Device pixel ratio (e.g. 2 for retina). Default 1. |