Skip to content
pw logo

Pw

pw

core usage of pw (playwright cli) on protocol-first surface. use when user requests browser tasks.

NeverSight/skills_feed0installs215starsOther

SKILL.md

Full skill instructions

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