Microsoft’s browser automation CLI that Claude Code uses to control a real browser — navigating pages, clicking elements, filling forms, taking screenshots, and running headless or headed sessions — without loading an MCP server into context.
Key facts
- Type: Browser automation tool
- Maker: Microsoft (open-source)
- Status: Active
- Language: JavaScript/TypeScript test scripts
- Token advantage: Zero tool-definition tokens loaded at session start (vs Chrome DevTools MCP, which loads its full catalogue)
What it does
Playwright CLI is installed as a project dependency. Claude Code writes and iterates JavaScript scripts that control a browser instance. Each automation task gets its own script file (e.g., qa-test.js, school-likes.js) that improves across runs as Claude learns which selectors work for a given UI.
Key patterns demonstrated by Nate Herk [011]:
Related
- See also: Claude Code, Ais Agent Bot
- Compared against: Chrome DevTools MCP, Vercel Agent Browser, Open CLI (choice criteria: token efficiency and selector learning)
- Concepts: Browser Automation With Claude, Mcp Vs Cli Token Tradeoff, Claude Code Scheduled Tasks
Source references
- [011] Nate Herk — Claude Code power features cluster (2026-04-20 to 2026-04-27)