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
e5fromsnapshot, - artifact files from
snapshot --filename,screenshot,console, andnetwork.
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.