test_dark_mode
Emulate dark or light color scheme on a browser session and capture a screenshot to verify a site's dark/light theming without changing OS settings.
Instructions
Emulate prefers-color-scheme (dark or light) on a session and screenshot the result. Returns the screenshot. Use to verify a site's dark/light theming without touching OS settings; the emulation persists for later actions in the session.
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_id": "<session_id>",
"mode": "<mode>"
},
"name": "test_dark_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Color scheme to emulate | |
| session_id | Yes | Session ID |