| name | playwright-cli |
| description | Browser automation workflow for navigation, interaction, and capture |
| allowed-tools | Bash(playwright-cli:*) |
Browser Automation with playwright-cli
Use this skill when a task needs browser navigation, form interaction, screenshots,
or data extraction from web pages.
Default workflow
- Open a browser session.
- Navigate to the target page.
- Capture a snapshot to get element refs (
e1, e2, ...).
- Interact using those refs.
- Snapshot or screenshot results.
- Close the browser and clean session data when done.
Core commands
Session and navigation
playwright-cli open
playwright-cli open https://example.com
playwright-cli open --browser=chrome
playwright-cli goto https://example.com/page
playwright-cli reload
playwright-cli go-back
playwright-cli go-forward
playwright-cli close
Interaction and inspection
playwright-cli snapshot
playwright-cli click e3
playwright-cli fill e5 "user@example.com"
playwright-cli type "search text"
playwright-cli press Enter
playwright-cli select e7 "option-value"
playwright-cli check e9
playwright-cli uncheck e9
playwright-cli hover e4
playwright-cli eval "document.title"
playwright-cli eval "el => el.textContent" e5