Playwright CLI
Playwright as a CLI with skills, a token-lean alternative to its MCP
What it is
Microsoft's command-line interface to Playwright, packaged with skills for coding agents. Agents drive the browser through short commands instead of loading MCP tool schemas and full accessibility trees into context, which the README presents as the better fit for coding agents, while the MCP server remains for long-running exploratory loops.
Good for
- Drive a browser from an agent with few tokens
- Record actions and generate Playwright tests
- Take screenshots and inspect selectors
Install or run
npm install -g @playwright/cli@latestCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
Node.js
Sources
- https://github.com/microsoft/playwright-cli (project README, read 10 Nov 2026)
- https://api.github.com/repos/microsoft/playwright-cli (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.