browser_emulate_viewport
Emulate device viewport, DPR, mobile mode, and user agent via CDP presets or custom width/height for responsive testing.
Instructions
Programmatic Device Mode via CDP (viewport + DPR + mobile/UA). Preset or width/height.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | ||
| width | No | ||
| height | No | ||
| deviceScaleFactor | No | ||
| mobile | No | ||
| userAgent | No | ||
| tabId | No |