Agent skill · software engineering · microsoft
playwright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Why this skill is useful
Adds executable scripts for browser automation and testing that extend the AI's capabilities beyond general knowledge.
What it needs
Requires playwright installed locally. About 6k tokens when loaded. Last updated 2026-08-06. 94,118 stars on the source repository.
What this skill does
Browser Automation with playwright-cli Quick start Commands Core Navigation Keyboard Mouse Save as Tabs Storage Network DevTools Raw output The global --raw option strips page status, generated code, and snapshot sections from the output, returning only the result value. Use it to pipe command output into other tools. Commands that don't produce output return nothing. For structured output wrapping every reply as JSON, pass --json Open parameters URLs with & on Windows On Windows, cmd.exe and PowerShell treat & as a command separator, so URLs with multiple query parameters get truncated before playwright-cli runs. Escape & with ^& in cmd.exe, or use --% in PowerShell: Snapshots After each command, playwright-cli provides a snapshot of the current browser state. You can also take a snapshot on demand using playwright-cli snapshot command. All the options below can be combined as needed. Targeting elements By default, use refs from the snapshot to interact with page elements. You can also use css selectors or Playwright locators. Browser Sessions Installation If global playwright-cli command is not available, try a local version via npx playwright cli: When local version is available, use npx playwright cli in all commands. Otherwise, install playwright-cli as a global command: Example: Form submission Example: Multi-tab workflow Example: Debugging with DevTools Example: Interactive session Ask the user for UI review or design feedback. The user draws boxes on the live page and types comments; you receive the annotated screenshot, the snapshot of the marked region, and the user's notes. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills microsoft/playwright-cli--de78c1