playwright-cli

Installation
SKILL.md

Browser Automation with playwright-cli

Validated against the installed playwright-cli binary on this machine (0.0.62). Treat the installed CLI help and live runtime behavior as the primary authority. Prefer this skill's documented + tested workflow over copied snippets from older skills.

How playwright-cli actually works

playwright-cli gives you a browser session controlled through terminal commands. The key object model is:

  • pages/tabs you navigate and inspect,
  • refs like e5 from snapshot,
  • artifact files from snapshot --filename, screenshot, console, and network.

Snapshots are not magical live DOM handles. They are point-in-time accessibility-tree dumps. Saved snapshots are markdown-style outline files in the current .playwright-cli/ artifact area.

Bootstrap (run once before browser work)

Related skills
Installs
3
GitHub Stars
6
First Seen
Mar 9, 2026