browser_emulate_media
Emulate CSS media features such as color scheme, contrast, forced colors, reduced motion, and media type to test how pages respond under different user and display settings.
Instructions
Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | No | Changes the CSS media type of the page | |
| session | No | Session id (default "default"). Each session is an isolated browser (own cookies, tabs) that runs in parallel with the others. Created on first use. | |
| contrast | No | Emulates the prefers-contrast media feature | |
| colorScheme | No | Emulates the prefers-color-scheme media feature | |
| forcedColors | No | Emulates the forced-colors media feature | |
| reducedMotion | No | Emulates the prefers-reduced-motion media feature |