# microsoft/playwright-cli

CLI for common Playwright actions. Record and generate Playwright code, inspect selectors and take screenshots.

Repository: https://github.com/microsoft/playwright-cli
Canonical: https://ross.abutalabs.com/products/playwright-cli
Homepage: https://playwright.dev
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: playwright
Last push: 2026-08-24T22:15:20+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 2266, "days_push": 9, "days_rel": 28, "gap_med": 4.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12871, forks 697 (observed 2026-08-28T04:10:59.949193+00:00)

## What it is
A command-line interface for Playwright browser automation designed for coding agents like Claude Code and GitHub Copilot. It provides token-efficient browser control through concise commands and installable skills, supporting recording, selector inspection, and screenshots.

## Use cases
- automate a browser from a coding agent without loading large tool schemas
- record user actions and generate Playwright test code
- take screenshots of web pages from the command line
- inspect and test selectors on a live page
- run end-to-end test flows on a website via CLI commands
- keep browser sessions with cookies across CLI invocations

## When to choose
- you use coding agents (Claude Code, Copilot) that benefit from token-efficient CLI workflows over MCP
- you want to script browser actions with concise commands instead of writing code
- you need to record and generate Playwright automation code
- your agent must balance browser automation with large codebases in limited context windows

## When to avoid
- you need persistent state, rich introspection, or iterative reasoning over page structure - prefer Playwright MCP
- you want a full-featured test runner with assertions and parallelism - use Playwright Test
- you need programmatic browser automation APIs in TypeScript, Python, .NET, or Java

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, testing, e2e-testing, web-scraping, agent-framework
- domain: developer-tools, testing, web-development, artificial-intelligence
- platform: cli, cross-platform, windows
- tags: playwright, browser-automation, coding-agents, skills, token-efficient, screenshots, codegen, automation, nodejs, linux, macos

## Member repositories
- microsoft/playwright-cli (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.949193+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:43.484227+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/playwright-cli (fetched 2026-08-28T04:10:59.949193+00:00, sha a3c86cbceddc)
  - homepage: https://playwright.dev (fetched 2026-08-29T08:10:08.411281+00:00, sha 1df034c136e5)
  - site_page: https://playwright.dev/docs/intro (fetched 2026-08-29T08:10:08.420549+00:00, sha ca82f3fc94fd)
  - site_page: https://playwright.dev/docs/api/class-playwright (fetched 2026-08-29T08:10:08.422923+00:00, sha 314ddc9f07f7)
  - site_page: https://playwright.dev/python/docs/intro (fetched 2026-08-29T08:10:08.424657+00:00, sha 5c5822e2deaa)
  - site_page: https://playwright.dev/dotnet/docs/intro (fetched 2026-08-29T08:10:08.426342+00:00, sha a6ef7805c7ac)
  - site_page: https://playwright.dev/java/docs/intro (fetched 2026-08-29T08:10:08.428641+00:00, sha 67158ea3c0a4)
  - site_page: https://playwright.dev/docs/getting-started-cli (fetched 2026-08-29T08:10:08.431332+00:00, sha 82b6590e3615)
  - site_page: https://playwright.dev/docs/getting-started-mcp (fetched 2026-08-29T08:10:08.434277+00:00, sha 6059653bd72c)
  - site_page: https://playwright.dev/docs/codegen (fetched 2026-08-29T08:10:08.437074+00:00, sha a9c039d63017)
- Data as of 2026-08-30T08:39:29.467469+00:00.
