{
  "slug": "playwright-cli-adds-browser-automation-sessions-and-configuration-eff9ba31d714",
  "title": "Playwright CLI adds browser automation, sessions and configuration",
  "tools": [
    "playwright-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-25T19:24:04.000Z",
  "announced_at": "2026-01-25T19:24:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an agent needs to test a web workflow, install the CLI and use `open`, snapshots, and interaction commands; use a named session for project-specific browser state. The cited v0.0.59 release says the CLI is headless by default and `--headed` shows the browser.",
    "examples": [
      "npm install -g @playwright/mcp@latest\nplaywright-cli --help",
      "playwright-cli open <url>\nplaywright-cli snapshot\nplaywright-cli click <ref>\nplaywright-cli type \"<text>\"\nplaywright-cli press <key>\nplaywright-cli screenshot",
      "playwright-cli --session=<name> open <url>\nplaywright-cli session-list\nPLAYWRIGHT_CLI_SESSION=<name> <agent-command>"
    ],
    "gotchas": [
      "Version: v0.0.59",
      "Requires npm install -g @playwright/mcp@latest",
      "open <url> (required): Open the URL in the browser.",
      "--headed: Show the browser when passed to `open`; CLI is headless by default.",
      "--session=<name>: Select a browser session/profile for the invocation.",
      "PLAYWRIGHT_CLI_SESSION: Select the session for the coding agent process.",
      "session-stop [name]: Stop the named session; name is optional in the documented syntax.",
      "session-stop-all: Stop all sessions.",
      "session-delete [name]: Delete session data and profiles; name is optional in the documented syntax.",
      "playwright-cli.json: Configuration file; the release states support but does not document its object keys or sub-keys.",
      "Prerequisite: Install globally with `npm install -g @playwright/mcp@latest`.",
      "Prerequisite: A coding agent may use the CLI directly by consulting `playwright-cli --help`; installing skills is optional in the release instructions.",
      "The CLI is headless by default.",
      "The release describes this as the first snapshot with the essential command set and says it is expected to grow.",
      "Docs conflict: Current Playwright CLI documentation describes the later `@playwright/cli` package and differs in commands and session behavior from the v0.0.59 release. Its newer details were excluded.",
      "Docs conflict: The v0.0.59 release specifies `@playwright/mcp@latest`; current CLI documentation specifies `@playwright/cli@latest`. The package instructions differ."
    ]
  },
  "why_it_matters": "Run browser interactions to test a web workflow from a coding agent, using project-specific browser state when needed.",
  "sources": [
    "https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.59"
  ],
  "rank": 0.98082,
  "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": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-64ffe0ef131db462-0:gate",
    "evidence_hash": "a3969c0983c303c4edfd85f1dd767f4c19698aee59b38dc63065dd088b2862d4"
  },
  "review": {
    "draft_hash": "1bab554f03b25ccb8c9770104097e0906a66da0e6ebf7c8242baa90517c593ac",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-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.75 (>= 0.6 needed)."
  }
}
