browser_emulate_media
Emulate CSS media features for a page—light/dark color scheme, contrast, forced colors, reduced motion, and screen/print type—to test how sites respond to user preferences.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session": "<session>"
},
"name": "browser_emulate_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Optional Chrome tab group color override for a newly created session. | |
| media | No | Changes the CSS media type of the page | |
| account | No | Chrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser). | default |
| session | Yes | Required isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab. | |
| 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 |