playwright-cli
Originally frommicrosoft/playwright-cli
Installation
Summary
Interactive browser automation with snapshot-based element references and multi-session support.
- 40+ commands across navigation, interaction, keyboard/mouse control, storage management, network mocking, and DevTools integration
- Automatic page snapshots after each command with element references (e.g.,
e15) for reliable, context-aware interactions - Multi-browser support (Chrome, Firefox, WebKit, Edge) with persistent profiles, session management, and named browser instances
- Built-in debugging tools including console logging, network inspection, tracing, and video recording for test workflows
SKILL.md
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
Related skills
More from microsoft/playwright
playwright-dev
Explains how to develop Playwright - add APIs, MCP tools, CLI commands, and vendor dependencies.
1.6Kplaywright-mcp-dev
Explains how to add and debug playwright MCP tools and CLI commands.
319playwright-devops
DevOps workflows for Playwright - CI failure analysis, workflow debugging, and release operations.
108playwright-api
Explains how to add playwright API methods.
85playwright-trace
Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.
3