Emulate device & conditions
emulateSimulates device viewports, user agents, locales, network speeds, CPU limits, color schemes, and vision deficiencies to test how web pages behave under varied conditions.
Instructions
Emulates a device (preset or custom viewport), user agent, locale, timezone, geolocation, dark/light mode, reduced motion, network conditions, CPU slowdown or a vision deficiency. Settings accumulate across calls; reset=true restores everything. All emulation is removed when the session ends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Remove all emulation from the tab. | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| touch | No | Emulate a touch screen. | |
| width | No | Viewport width in CSS pixels. | |
| device | No | Device preset. | |
| height | No | Viewport height in CSS pixels. | |
| locale | No | Locale, e.g. "vi-VN". | |
| mobile | No | Mobile viewport (meta viewport, overlay scrollbars). | |
| network | No | Network conditions preset ("none" removes throttling). | |
| latitude | No | Geolocation latitude. | |
| timezone | No | IANA timezone, e.g. "Asia/Ho_Chi_Minh". | |
| latencyMs | No | Custom extra latency (ms). | |
| longitude | No | Geolocation longitude. | |
| userAgent | No | User agent string. | |
| uploadKbps | No | Custom upload throughput (kbit/s). | |
| colorScheme | No | prefers-color-scheme. | |
| cpuSlowdown | No | CPU throttling rate, e.g. 4 = 4x slower (1 removes it). | |
| downloadKbps | No | Custom download throughput (kbit/s). | |
| reducedMotion | No | prefers-reduced-motion: reduce. | |
| visionDeficiency | No | Simulated vision deficiency. | |
| deviceScaleFactor | No | Device pixel ratio. |