set_color_scheme
Emulate light or dark color scheme on a webpage to test CSS and JavaScript behavior under different OS preferences. Reset to restore system default.
Instructions
Emulate prefers-color-scheme (light/dark mode) in the current page. Overrides CSS @media rules, the color-scheme property, and JavaScript matchMedia() (including change events) so the page behaves as if the OS preference changed. Use "reset" to restore the system default.
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": {
"colorScheme": "<colorScheme>"
},
"name": "set_color_scheme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colorScheme | Yes | "light" or "dark" to emulate that preference, or "reset" to remove the override and restore the system default. |