pw
commands
Use canonical ops via pw exec.
pw exec navigate --input '{"url":"..."}'pw exec page.text --input '{"selector":"..."}'pw exec page.html --input '{"selector":"..."}'pw exec click --input '{"selector":"..."}'pw exec fill --input '{"selector":"...","text":"..."}'pw exec screenshot --input '{"output":"page.png"}'pw exec page.eval --input '{"expression":"..."}'pw exec page.read --input '{}'
For NDJSON loops, use pw batch.
setup
start daemon for fast warm execution:
scripts/start-daemon.sh
browser session management is via canonical connect op:
- launch:
pw exec connect --input '{"launch":true}' - discover:
pw exec connect --input '{"discover":true}' - clear:
pw exec connect --input '{"clear":true}'
auth in ./playwright/auth/*.json is auto-injected when configured.
context
runtime/profile state is profile-scoped under .pw-cli-v4.
use --profile <name> for isolation.
wrappers
scripts/pw.nu exposes stable helpers (pw nav, pw click, pw eval, etc.) but internally calls only pw exec.
references
More from alb-o/pw-rs
pw-higgsfield
higgsfield ai image/video generation using pw protocol wrappers. trigger when user wants to generate images or videos.
12pw-pair-programming
driver-to-navigator collaboration using pp (send messages, attach files, download artifacts) on pw protocol wrappers.
9rust-cleanup
General rust cleanup process with focus on comments vs rustdoc. Run after a complete task or feature.
3