Skip to content
  1. Home
  2. AI tools
  3. Playwright CLI

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@latest

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

Node.js

Worth knowingFor persistent, introspective browser sessions the README still points to Playwright MCP.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • opencode

    anomalyco/opencode

    Open-source AI coding agent with a terminal UI and desktop app

    ToolGitHub stars: 227k
  • Claude Code

    anthropics/claude-code

    Anthropic's terminal coding agent; this repo hosts issues and plugins

    ToolGitHub stars: 156k
  • Spec Kit

    github/spec-kit

    GitHub's toolkit for spec-driven development with coding agents

    ToolGitHub stars: 150k
  • Codex CLI

    openai/codex

    OpenAI's terminal coding agent that runs locally on your machine

    ToolGitHub stars: 135k