| name | browser |
| description | Interactive browser control via playwright-cli commands (open, snapshot, click, fill, screenshot, etc.) |
| metadata | {"version":"1.0.0","openfox":{"displayName":"Browser"}} |
playwright-cli
You have access to npx playwright-cli for interactive browser automation via the terminal.
Use run_command to execute these commands.
Core Workflow
The typical workflow is: open a page -> snapshot to get element refs -> interact using refs -> snapshot again.
npx playwright-cli open https://example.com
npx playwright-cli snapshot
npx playwright-cli click e42
npx playwright-cli fill e15 "hello world"
npx playwright-cli screenshot
Screenshot workflow
After doing npx playwright-cli screenshot, always use the read_file tool on the path of the image returned by playwright-cli.
This allows you to see the image, and for the user to see it as well.
All Commands
open [url] -- open the browser (optionally to a URL)
- use
npx playwright-cli --help to get all available commands