{
  "slug": "playwright-mcp-browser-emulate-media-changes-media-features-during-a-session-4d16960c2071",
  "title": "playwright-mcp browser_emulate_media changes media features during a session",
  "tools": [
    "playwright-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-18T23:35:04.000Z",
  "announced_at": "2026-09-18T23:35:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "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.",
    "examples": [
      "browser_emulate_media({\"colorScheme\":\"dark\"})",
      "browser_emulate_media({\"media\":\"print\"})"
    ],
    "gotchas": [
      "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."
    ]
  },
  "why_it_matters": "Inspect a web application's dark theme or other media-dependent rendering during a browser session.",
  "before": "The release note says agents had no way to inspect the dark theme mid-session.",
  "sources": [
    "https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.82",
    "https://github.com/microsoft/playwright-mcp/blob/v0.0.82/README.md"
  ],
  "rank": 0.98045,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "gap-20261007",
    "verdict_id": "gap-20261007:gap-20261007-1476a1ed0e963f8c-2:gate",
    "evidence_hash": "cd12a512170139c06bf7fa634cbace15b7ec44034bee2468f191e7e7bc0e6209"
  },
  "review": {
    "draft_hash": "6934fae894bdaeb97c930596d91e75ab24355c598168fb1dd0aca2a335300d51",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "gap-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
