Automates browser interactions via playwright-cli for web navigation, research, form filling, screenshots, and data extraction. Use when the user needs to browse websites, research topics, interact with web pages, or extract information. Requires playwright-cli (npm install -g @playwright/cli@latest).
Use exec_shell to run playwright-cli commands. This is a CLI-based browser that is more token-efficient than MCP — it avoids loading large tool schemas and accessibility trees into context.
playwright-cli open https://example.com
playwright-cli snapshot
playwright-cli click e15
playwright-cli type "search query"
playwright-cli screenshot
playwright-cli close
playwright-cli open <url>playwright-cli snapshotplaywright-cli click e5, playwright-cli fill e3 "text"playwright-cli goto <url>, playwright-cli go-backplaywright-cli screenshot, playwright-cli pdf --filename=page.pdfplaywright-cli closeAfter each command, playwright-cli provides a snapshot with element refs (e1, e5, e15). Use these refs in click, fill, hover, etc. Run playwright-cli snapshot to refresh on demand.
playwright-cli -s=mysession open https://example.com # named session
playwright-cli -s=mysession click e6
playwright-cli -s=mysession close
playwright-cli list # list all sessions
playwright-cli close-all # close all browsers
playwright-cli open --browser=chrome # specific browser
playwright-cli open --headed # visible browser (headless by default)
playwright-cli open --persistent # persist profile to disk
playwright-cli open --config=file.json # use config file
snapshot after navigation or clicks to see available element refs.fill for form inputs (not type — type appends text, fill replaces).playwright-cli is not found, try npx playwright-cli instead.--filename= for screenshots/PDFs when the artifact is part of the result.This skill includes additional reference material in the references/ subdirectory:
Use read_file to load these when you need the detailed reference.