Skip to content
rebs.
PT
cd /skills

Playwright CLI

Curated Quality ~/skills/playwright-cli/SKILL.md

Gives coding agents a token-efficient browser. Open pages, click, fill forms, take snapshots and write Playwright tests through short CLI commands instead of an MCP server.

install

npm install -g @playwright/cli@latest && playwright-cli install --skills

What it does

Exposes Playwright as a command-line tool that agents drive directly. CLI calls are more token-efficient than MCP because they skip large tool schemas and verbose accessibility trees.

When to use

  • Checking that a UI change actually works in a real browser.
  • Reproducing a bug by walking through a flow.
  • Generating or debugging Playwright tests.

What’s inside

  • Core commands: open, goto, click, fill, type, snapshot, screenshot.
  • Navigation, keyboard, mouse and tabs.
  • Storage and network: cookies, local storage, request mocking.
  • References for test generation, tracing, video recording and session management.

The CLI and its skill are authored and maintained by Microsoft.

Related skills