sincecutoff.com
← all changes

playwright-mcp browser_emulate_media changes media features during a session

Introduced 2026-09-18 · score 0.98

HOW TO USE IT

When inspecting dark-theme or other media-dependent rendering in a browser session, call `browser_emulate_media` with the media features to change; omitted parameters remain unchanged, and `null` clears an override.

browser_emulate_media({"colorScheme":"dark"})
browser_emulate_media({"media":"print"})

WHY THIS HELPS

Inspect a web application's dark theme or other media-dependent rendering during a browser session.

BEFORE THIS CHANGE

The release note says agents had no way to inspect the dark theme mid-session.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.0.82
  • colorScheme: Emulates the `prefers-color-scheme` media feature.
  • reducedMotion: Emulates the `prefers-reduced-motion` media feature.
  • forcedColors: Emulates the `forced-colors` media feature.
  • contrast: Emulates the `prefers-contrast` media feature.
  • media: Changes the CSS media type of the page.
  • Prerequisite: Node.js 18 or newer and an MCP client.
  • Omitted parameters are left unchanged; `null` clears an override.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card