emulate_media
Override browser media features and user agent to simulate different environments, such as dark mode, reduced motion, or print rendering, for testing adaptive styles.
Instructions
Make the page believe it runs elsewhere, until reset or reload: prefers-color-scheme, prefers-reduced-motion, print mode, navigator.userAgent/platform. user_agent changes only what page JS reads — the request header is network_rules modify_header. Pair with viewport_resize to emulate a device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Remove all emulations | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| printMode | No | Make print media queries match, without opening a print dialog | |
| user_agent | No | Overrides navigator.userAgent and appVersion in the page (not the HTTP header) | |
| colorScheme | No | Value reported to prefers-color-scheme queries | |
| reducedMotion | No | Value reported to prefers-reduced-motion queries |