Skip to content
microsoft avatar

Playwright Cli

Command-line browser automation with snapshot refs for clicking, typing, and inspecting pages, plus Playwright test support.

CCM score
71 of 100
skills.sh installs
578
GitHub stars
101.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers page navigation, form input, keyboard and mouse actions, tabs, storage, emulation, and network routing
  • Includes DevTools commands for console and request logs, tracing, video recording, and Playwright locator generation
  • Exposes page-provided WebMCP tools, which are treated as untrusted input rather than as instructions
  • Designed for agents that drive live browser sessions from the shell and need snapshot-based element references

Install

$ npx -y skills add microsoft/playwright --skill playwright-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Browser Automation with playwright-cli

Quick start

# open new browser
playwright-cli open
# navigate to a page
playwright-cli goto https://playwright.dev
# interact with the page using refs from the snapshot
playwright-cli click e15
playwright-cli type "page.click"
playwright-cli press Enter
# take a screenshot (rarely used, as snapshot is more common)
playwright-cli screenshot
# close the browser
playwright-cli close

Commands

Core

Details

Repository
github.com/microsoft/playwright
Categories
Browser Automation & Scraping, Testing & QA
First seen
Jun 3, 2026

Questions

What does the playwright-cli skill do?

The playwright-cli skill automates browser interactions and tests web pages, letting an agent open pages, click, type, fill forms, take snapshots and screenshots, and run Playwright tests. It is built as a command-line interface for coding agents that is more token-efficient than MCP.

How do I install the playwright-cli skill?

Run npx -y skills add microsoft/playwright --skill playwright-cli -y in your project. After that, the agent can drive a browser with commands such as open, goto, click, fill and snapshot.

Which skills lead the Browser Automation & Scraping category?

In the Browser Automation & Scraping category, playwright-cli is listed alongside agent-browser, anti-detect-browser and browser-act. It covers the Playwright browser automation commands, including snapshots, network routing, tracing and video recording.

More from microsoft/playwright

All 3

Similar to Playwright Cli

More Browser Automation & Scraping