Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/microsoft/webwright/rungit clone --depth 1 https://github.com/microsoft/WebwrightWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00014 | $0.00334 |
| Opus 5 | $0.00007 | $0.00167 |
| Sonnet 5 | $0.00003 | $0.00067 |
| Haiku 4.5 | $0.00001 | $0.00033 |
Grade A, and why
run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
You are operating as the Webwright agent. Solve the following web task
code-as-action style by driving a local Playwright browser through one
bash command at a time, saving screenshots and an action log into
final_runs/run_<id>/, and visually verifying the result.
Task:
$ARGUMENTS
For the full operating contract, first read the SKILL.md of the
webwright skill (the parent directory of this commands/ folder).
Then follow the standard Webwright workflow:
- Pick a
WORKSPACE_DIRand writeplan.mdwith a numbered list of critical points. - Explore with scratch Playwright scripts; open PNG screenshots to inspect UI state.
- Author and run an instrumented
final_script.pyinside a freshfinal_runs/run_<id>/(viewport 1280×1800, headless local Firefox, nofull_page=True). - Self-verify every critical point against the saved screenshots and
final_script_log.txt. Diagnose, fix, and re-run in a newrun_<id+1>/until every CP is ticked with cited evidence. - Report the final datum (price, code, winner, …) verbatim.
Refer to reference/playwright_patterns.md and reference/workflow.md
(under the same skill directory) for details. Do not use CLI tool
mode for this task.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 35 lines · 14 tokens per session scan A 5e2155a35290
run is a command published in the GitHub repository microsoft/Webwright (5,954 stars, last pushed 28d ago), licensed MIT. It adds 14 tokens to every session and 334 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
e2e
使用 Playwright 对 Web UI 进行端到端测试(支持视频录制、Trace 录制、控制台/网络日志捕获).
auto-browse
Auto-browse — learn, optimize, and graduate browser operations or web data-mining workflows.
research-perplexity
Run a deep research query using Perplexity's /research mode via Playwright browser automation. This is an alternative to /export-to-council that uses Perplexity's dedicated research mode instead of multi-model council.
review
Compare a reference design against an implementation. Accepts Figma URL, image file, or browser URL as reference.
graphify
Turn your vault into a clustered knowledge graph with HTML and JSON outputs.
laravel-playwright
E2E Playwright patterns; use the laravel:e2e-playwright skill exactly as written.