Emulate device preset
emulate_deviceEmulate a phone or tablet with consistent user agent, viewport, and touch signals to avoid automation detection. Optionally set geolocation, network conditions, and CPU throttling.
Instructions
Emulate a phone or tablet with one internally consistent set of signals.
Preferred over assembling emulate parameters by hand for mobile work: user
agent, UA client hints (Sec-CH-UA-*), viewport, device pixel ratio, touch
support and Accept-Language are set together so they cannot contradict each
other — a mismatch between them is a classic automation tell.
Presets are pixel_7, pixel_7_landscape and ipad_air (aliases are listed in
the device parameter). ipad_air deliberately reports desktop-class Safari
with touch and sends no client hints, which is what a real iPad does.
Applies to the selected page and survives navigation. To have mobile signals
present on a page's very first request, pass device to new_page or
navigate_page instead of calling this afterwards. Undo with reset_emulation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device to emulate — sets user agent, UA client hints, viewport, device pixel ratio and touch together. Presets: "pixel_7" (aliases: pixel7, android, android_phone), "pixel_7_landscape" (pixel7_landscape, android_landscape), "ipad_air" (ipadair, ipad, tablet). Case, spaces and -/_ are normalised. Empty string leaves emulation unchanged. | |
| geolocation | No | Override geolocation, as "latitude,longitude" (e.g. "37.7749,-122.4194"). Omit to leave unchanged; pass an empty string to clear a previous override. | |
| color_scheme | No | Emulate the prefers-color-scheme media feature. "auto" clears a previous override; empty string leaves it unchanged. | |
| network_conditions | No | Throttle the network to a preset profile. "Offline" cuts the connection entirely. Empty string leaves throttling unchanged. | |
| cpu_throttling_rate | No | Slow the CPU by this factor to emulate a low-end device (4 = 4x slower; 1-20 is the useful range). 0 or 1 means no throttling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |