playwright-cli
AGENTS.md15k starsChanged 7 months agoApache-2.0View on GitHub
This repo ships the npm package @playwright/cli. The CLI itself is in microsoft/playwright, in packages/playwright-core/src/tools/: cli-client/ has the commands and their options, cli-daemon/ has the daemon that keeps the browser open between commands, and backend/ has the tools that the commands run. - What this repo owns: playwright-cli.js, which runs the CLI of the pinned playwright-core and adds the update check, skillCheck.js, the README, and the tests of the packaged CLI. - What is a copy: skills/playwright-cli/ is a copy…
- Commits and pushes
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/playwright-cli
- Chase AI“Claude Code + Playwright = INSANE Browser Automations”YouTube · Mar 6, 2026 · 160k views
- Playwright“Playwright CLI vs MCP - a new tool for your coding agent”YouTube · Feb 6, 2026 · 117k views
- IndyDevDan“My 4-Layer Claude Code Playwright CLI Skill (Agentic Browser Automation)”YouTube · Feb 16, 2026 · 32k views
- Playwright“Giving UI Reviews to Coding Agents - Playwright CLI”YouTube · Apr 29, 2026 · 29k views
- Better Stack“Playwright CLI vs MCP Server: Which is Actually BETTER for Claude Code?”YouTube · Feb 17, 2026 · 23k views
The biggest 5 of 86 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 86
Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (86 times).
On GitHub · 50
- Jan 7, 2021[Feature] Record network requests and save them as ready-to-use mocks — microsoft/playwright53 reactions · 30 comments
- Jul 20, 2020Use rod to create a project to record browser events — go-rod/rod5 reactions · 5 comments
- Jan 28, 2026chore(deps): bump the dev-dependencies group across 1 directory with 8 updates — moshehbenavraham/Voice-Agent-PuPuPlatter3 reactions · 3 comments
- Sep 26, 2026IPI-1335 · E2E-PLAYWRIGHT-003 — Align Playwright CLI 0.1.21 and add attach debugging — amoai-tech/ipixai2 reactions · 11 comments
- Jul 1, 2026Proposal: Official esa Agent Skills — esaio/esa-mcp-server2 reactions · 4 comments
45 more on GitHub
- Mar 7, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR37038__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.48.0 to 1.58.2 — code-review-benchmark/keycloak__keycloak__entelligence__PR33832__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.53.2 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR40940__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.51.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR38446__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR36880__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR37634__202603062 reactions · 3 comments
- Mar 7, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__entelligence__PR37429__202603062 reactions · 3 comments
- Mar 6, 2026Bump @playwright/test from 1.47.1 to 1.58.2 — code-review-benchmark/keycloak__keycloak__entelligence__PR32918__202603062 reactions · 3 comments
- Mar 6, 2026Bump @playwright/test from 1.54.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak-greptile__entelligence__PR1__202603062 reactions · 3 comments
- Feb 21, 2026chore(deps): bump playwright and @playwright/test in /frontend — Chronos-llc/chronos-AI-agent-builder-studio2 reactions · 1 comment
- Feb 19, 2026Bump the npm_and_yarn group across 8 directories with 20 updates — VpkDevs/dyadia2 reactions · 2 comments
- Feb 16, 2026chore(deps): bump @playwright/test from 1.56.1 to 1.58.2 — CloudToLocalLLM-online/CloudToLocalLLM2 reactions · 2 comments
- Feb 13, 2026Bump @playwright/test from 1.57.0 to 1.58.2 — Kilo-Org/kilocode2 reactions · 3 comments
- Feb 9, 2026Bump @playwright/test from 1.50.0 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__kg__PR36882__202602022 reactions · 2 comments
- Feb 9, 2026Bump @playwright/test from 1.51.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__kg__PR38446__202602022 reactions · 2 comments
- Feb 9, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__kg__PR36880__202602022 reactions · 2 comments
- Feb 9, 2026Bump @playwright/test from 1.50.1 to 1.58.2 in /js — code-review-benchmark/keycloak__keycloak__kg__PR37429__202602022 reactions · 2 comments
- Feb 2, 2026chore(deps): bump the minor-and-patch group with 19 updates — gmickel/gno2 reactions · 2 comments
- Jan 30, 2026Bump the npm_and_yarn group across 4 directories with 11 updates — GlacierEQ/wordpress-develop2 reactions · 5 comments
- Jan 29, 2026Bump the npm_and_yarn group across 1 directory with 8 updates — GlacierEQ/mcp-server-browserbase2 reactions · 3 comments
- Jan 29, 2026Bump the npm_and_yarn group across 2 directories with 14 updates — GlacierEQ/cursor2 reactions · 4 comments
- Jan 27, 2026chore(mcp): support --extesnsion in cli — microsoft/playwright2 reactions · 4 comments
- Jan 26, 2026chore(deps)(deps-dev): bump @playwright/test from 1.57.0 to 1.58.0 in /hvac-design-app in the development-dependencies group — engryamato/HVAC_Canvas_App2 reactions · 3 comments
- Jan 26, 2026deps(deps): bump the security-updates group with 12 updates — koushik369mondal/WanderLust2 reactions · 2 comments
- Jan 26, 2026deps(deps-dev): Bump @playwright/test from 1.57.0 to 1.58.0 in the testing group — NeXify-Chat-it-Automate-it/OpenCarBoxsays it tested it2 reactions · 3 comments
- Jan 26, 2026chore(deps-dev): bump the dev-dependencies group with 9 updates — chaterm/Chaterm2 reactions · 2 comments
- Nov 6, 2026[ca] chore: update eligible CLI and scanner pins — github/gh-aw1 reaction · 15 comments
- Oct 11, 2026[ca] [aw] Update agentic CLI versions and scanner image pins — github/gh-aw1 reaction · 1 comment
- Sep 30, 2026[ca] CLI/Docker version checker: pin updates detected on 2026-09-30 — github/gh-aw1 reaction
- Sep 16, 2026[ca] CLI version checker: detected upstream updates for CLI defaults and scanner images — github/gh-aw1 reaction · 2 comments
- Aug 9, 2026[ca] CLI version check: Playwright CLI 0.1.17 → 0.1.18 (2026-08-09) — github/gh-aw1 reaction · 1 comment
- Aug 7, 2026[ca] CLI version update: Claude Code, Codex, Playwright MCP, Pi (2026-08-07) — github/gh-aw1 reaction · 1 comment
- Aug 6, 2026[ca] CLI/Docker version check: Claude Code, Codex, and Playwright MCP updates (2026-08-06) — github/gh-aw1 reaction · 2 comments
- Jul 23, 2026Plugin plan — charlyautomatiza/playwright-plugin1 reaction
- Jul 7, 2026fix(cli): don't crash the response when navigating closes the last tab — microsoft/playwright1 reaction · 1 comment
- Jun 8, 2026[Regression] playwright install chrome fails — microsoft/playwright1 reaction · 2 comments
- Mar 23, 2026Bump the npm_and_yarn group across 5 directories with 16 updates — abrahem79/brand1 reaction · 1 comment
- Mar 21, 2026Bump the npm_and_yarn group across 5 directories with 16 updates — abrahem79/brand1 reaction · 1 comment
- Mar 13, 2026deps: bump playwright and @playwright/test — ahump20/arcjet-example-nextjs1 reaction · 2 comments
- Mar 7, 2026Implement SKILL file and install --skills command — kylehgc/cypress-cli1 reaction
- Mar 7, 2026Feasibility audit: Cypress capability matrix vs playwright-cli commands — kylehgc/cypress-cli1 reaction
- Mar 4, 2026Compare with agent-browser — pinchtab/pinchtab1 reaction · 2 comments
- Feb 23, 2026chore(cli): tell skill how to install — microsoft/playwright1 reaction · 2 comments
- Feb 10, 2026Replace playwright mcp with playwright cli? — microsoft/aspire1 reaction · 1 comment
- Feb 9, 2026fix(cli): -b reference in skills — microsoft/playwright1 reaction
On YouTube · 24
- Mar 6, 2026Claude Code + Playwright = INSANE Browser Automations — Chase AI160k views · 82 comments
- Feb 6, 2026Playwright CLI vs MCP - a new tool for your coding agent — Playwright117k views · 102 comments
- Feb 16, 2026My 4-Layer Claude Code Playwright CLI Skill (Agentic Browser Automation) — IndyDevDan32k views · 53 comments
- Apr 29, 2026Giving UI Reviews to Coding Agents - Playwright CLI — Playwright29k views · 11 comments
- Feb 17, 2026Playwright CLI vs MCP Server: Which is Actually BETTER for Claude Code? — Better Stack23k views · 22 comments
19 more on YouTube
- Aug 17, 2026Playwright CLI + OpenCode Just Changed Browser Automation Forever — Brandon Melville21k views · 17 comments
- Feb 9, 2026playwright-cli demo — The Modern Web Architect18k views · 12 comments
- Apr 8, 2026Playwright CLI Tutorial: Token Efficient Browser Automation With Antigravity — QA Thoughts2.8k views
- Mar 1, 2026Playwright MCP vs CLI + SKILLS Explained | Which AI Browser Tool Should You Use? — Viplove QA - SDET2k views · 7 comments
- Mar 8, 20263. Playwright MCP vs CLI in VS Code + GitHub Copilot — Test Automation with Atul Sharma1.5k views · 8 comments
- Feb 23, 2026Playwright CLI vs Playwright MCP🔥 Token Usage Explained ! Real architectural difference !#mcpserver — SDET Sanjay1.5k views · 4 comments
- Feb 10, 2026Playwright MCP vs CLI: Which AI Testing Tool DESTROYS Your Token Budget? — QA Routinesays it tested it1.2k views
- Feb 28, 2026Save 95% Tokens Using Playwright-CLI + Claude Instead of Playwright MCP | ARIA Snapshot Explained — QA Automation Alchemistsays it tested it976 views · 1 comment
- Oct 25, 2026Playwright CLI vs MCP: Which One Saves More Tokens? — Jagadeesh Jayachandran567 views · 7 comments
- Apr 2, 2026Playwright + AI using GitHub Copilot — dtomyn_tech509 views
- Apr 29, 2026Playwright MCP Turns Claude Desktop Into a Browser Agent — Build n Bloom503 views
- Jun 20, 2026Stop Wasting Tokens! Why Every QA Engineer Needs Playwright CLI — JKC Tutorials 433 views · 17 comments
- Jul 15, 2026Playwright CLI: Browser Tests Without MCP Overhead — VibeDev373 views
- May 13, 2026How Automates Browser Usage: Claude Extension VS Playwright CLI — Vadym | AI Agentic Hub344 views
- Feb 14, 2026Microsoft Playwright-CLI Review: Efficient Browser Control for AI — Blueprint Bytes211 views
- Apr 8, 2026Playwright CLI + Copilot: Generate Automated Tests with AI (Step-by-Step) in Less than 5 minutes! — ZekeTests145 views
- Oct 23, 2026Give Claude Code a Real Browser (Playwright CLI) — AI Dev Minute36 views
- Oct 11, 2026Make Claude Code Show the Evidence Before You Launch — AI Mathias | AI Automation28 views
- Jan 30, 2026microsoft/playwright-cli - Gource visualisation — Gourcer27 views
On Bluesky · 7
- Jan 31, 2026I'm a huge fan of Playwright MCP or Chrome Dev Tools MCP but I just came across Playwright CLI this morning and something tells me using… — @techwatching.bsky.social3 likes and reposts · 1 reply
- Jul 26, 2026some skills that document how to use github.com/microsoft/pl... to do the thing are imo still better, giving the llm the open ended… — @jauntywunderkind.bsky.social2 likes and reposts · 1 reply
- Jun 9, 2026📦 microsoft / playwright-cli ⭐ 11,182 (+42) 🗒 TypeScript CLI for common Playwright actions. Record and generate Playwright code, inspect… — @github-trending-js.bsky.social2 likes and reposts
- Feb 28, 2026Have you tried the new playwright agent skill library? github.com/microsoft/pl... — @riziles.bsky.social2 likes and reposts
- Apr 11, 2026📦 microsoft / playwright-cli ⭐ 7,224 (+62) 🗒 TypeScript CLI for common Playwright actions. Record and generate Playwright code, inspect… — @github-trending-js.bsky.social1 likes and repost
2 more on Bluesky
- Feb 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / playwright-cli ⭐ 3,547 (+206) 🗒 TypeScript CLI for common Playwright actions. Record… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Feb 5, 2026playwright cli from microsoft - browser automation for coding agents without the mcp overhead #dailytools — @maheu.co1 likes and repost
On Hacker News · 3
- Sep 18, 2020Playwright CLI – Open/inspect/emulate pages, generate screenshots, record users134 points · 21 comments
- Feb 7, 2026CLI for Common Playwright Actions3 points
- Feb 19, 2026Tell HN: OpenCode/Claude Code and Playwright CLI is great for front end dev1 point · 1 comment
On the web · 2
- Oct 5, 2026Playwright CLI - Browse /v0.1.19 at SourceForge.net — sourceforge.net
- Feb 12, 2026Playwright CLI: The Token-Efficient Alternative to ... — testcollab.com
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- devSkill
- playwright-cliSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 68
Never add Co-Authored-By agents in commit message.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
How this repo depends on Playwright
This repo ships the npm package @playwright/cli. The CLI itself is in microsoft/playwright, in
packages/playwright-core/src/tools/: cli-client/ has the commands and their options,
cli-daemon/ has the daemon that keeps the browser open between commands, and backend/ has the
tools that the commands run.
- What this repo owns:
playwright-cli.js, which runs the CLI of the pinnedplaywright-coreand adds the update check,skillCheck.js, the README, and the tests of the packaged CLI. - What is a copy:
skills/playwright-cli/is a copy ofpackages/playwright-core/src/tools/skills/playwright-cli/.node scripts/update.jsrefreshes it on a roll. Change it upstream. - The pin:
package.jsonpins an alpha ofplaywrightandplaywright-core.npm view playwright-core@<alpha> gitHeadprints the upstream commit of an alpha, andnpm view @playwright/cli@<version> dependencies.playwright-coreprints the alpha of a release. The pin is older than the tip of upstreammain. - Where a fix goes: most bugs and features are upstream. Work in a checkout of
microsoft/playwright,~/code/playwright, as itsAGENTS.mdsays. The tests of the CLI are itstests/mcp/cli-*.spec.ts, with theclifixture oftests/mcp/cli-fixtures.ts, andnpm run test-playwright-cliruns them. Fix here only what this repo owns. - How a fix arrives: with a roll, after
playwright@nexthas the upstream commit. The upstream PR saysRefs <issue url>for an issue of this repo, and the roll PR here saysFixes.
Paths such as ~/code/playwright
in this file assume that you check the repos out in ~/code.
Build and test
npm ci
npm test # tests/integration.spec.ts
npx playwright test -g "open data URL"There is no build step and no lint. Tests are in tests/integration.spec.ts. They run
playwright-cli.js with runCli() in the output directory of the test, and the npmRegistry
fixture serves a fake registry for the update check. Add a case to the test whose setup is closest
instead of a new test.
Commit Convention
Semantic commit messages: label(scope): description
Labels: fix, feat, chore, docs, test, devops
git checkout -b fix-39562
# ... make changes ...
git add <changed-files>
git commit -m "$(cat <<'EOF'
fix(proxy): handle SOCKS proxy authentication
Fixes: https://github.com/microsoft/playwright/issues/39562
EOF
)"
git push origin fix-39562
gh pr create --repo microsoft/playwright --head username:fix-39562 \
--title "fix(proxy): handle SOCKS proxy authentication" \
--body "$(cat <<'EOF'
## Summary
- <describe the change very! briefly>
Fixes https://github.com/microsoft/playwright/issues/39562
EOF
)"Never add Co-Authored-By agents in commit message.
Branch naming for issue fixes: fix-<issue-number>
Rolling Playwright and preparing a release
See .claude/skills/dev/roll.md and .claude/skills/dev/release.md.
Bots
The Playwright bot does the work below. It opens pull requests as the
microsoft-playwright-automation app. agent-triage.yml and
agent-review.yml hand it the labels:
agent-triageon an issue: finds the cause and fixes the issue if it can. A fix inmicrosoft/playwrightopens as a draft PR there.agent-implementon an issue: implements what the issue and the maintainers' comments say.agent-reviewon a PR: revises the PR, as the maintainers' review comments say.- agent-roll.yml and agent-release.yml, from the Actions tab: they hand a task to the bot. Roll Playwright to
playwright@next, as the roll skill says. Or open thechore: mark v<version>PR with the release notes as its description, as the release skill says. Copy the notes into the release draft. - agent-task.yml, from the Actions tab: hands the bot the task that you type, with the skills of this repo.
Apply a label again to start another run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

