emulate
Override browser geolocation, offline status, and media preferences to test page behavior under different device and network conditions. Fields not set remain unchanged.
Instructions
Emulate media, geolocation ("lat,lon") and connectivity. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | No | ||
| offline | No | ||
| geolocation | No | ||
| color_scheme | No | ||
| forced_colors | No | ||
| reduced_motion | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |