emulate
Simulate media, geolocation, network, and CPU conditions to test web page behavior under different scenarios.
Instructions
Emulate media, geolocation ("lat,lon"), connectivity and a slow device. Media overrides (color scheme, reduced motion, forced colors) apply to the current tab; geolocation and offline apply to the whole browser context, so later tabs and loads keep them. Fields you omit are left unchanged. The position persists context-wide, but only an http(s) origin that called emulate can read it (that origin gets the geolocation permission); call emulate again after navigating elsewhere. cpu_throttle slows the current tab's CPU by that factor (4 = four times slower; 1 restores full speed). network_conditions throttles the current tab's network with a preset ("Slow 3G", "Fast 3G", "Slow 4G", "Fast 4G", or "No throttling" to switch it off) or with explicit latency_ms/download_kbps/upload_kbps. A network call replaces the tab's whole network profile (unset latency is 0, unset throughput is unthrottled) rather than editing it. Throttling lasts until changed and needs a chromium server (it goes through CDP); on firefox/webkit it is refused before anything else is applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | No | ||
| offline | No | ||
| latency_ms | No | ||
| geolocation | No | ||
| upload_kbps | No | ||
| color_scheme | No | ||
| cpu_throttle | No | ||
| download_kbps | No | ||
| forced_colors | No | ||
| reduced_motion | No | ||
| network_conditions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |