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.
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. |