browser-reference

A set of browser-control commands for Playwright, a tool that opens web pages and interacts with them automatically.

In plain words
What is it for?
Use it to visit pages, click, type, scroll, select options, save PDFs, inspect accessibility information, monitor requests and console messages, and compare pages with Figma designs.
Why use it?
It lets an agent inspect and operate a website without manually repeating browser actions.

Command

Install

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.

agentmods
npx agentmods add commands/serkan-ozal/browser-devtools-claude/browser-reference
Clone the repo
git clone --depth 1 https://github.com/serkan-ozal/browser-devtools-claude
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00415
Opus 5 $0.00000 $0.00208
Sonnet 5 $0.00000 $0.00083
Haiku 4.5 $0.00000 $0.00042

Measured 2d ago against content hash 17fc593c3df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

browser-reference 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.

docs/commands/browser-reference.md · 25 lines

What it actually says

Browser Platform Commands

Use with PLATFORM=browser. Web automation via Playwright.

Command Tool(s)
/browse navigation_go-to
/screenshot content_take-screenshot
/click, /fill, /hover interaction_click, interaction_fill, interaction_hover
/select, /drag, /scroll interaction_select, interaction_drag, interaction_scroll
/keypress interaction_press-key
/html, /text, /pdf content_get-as-html, content_get-as-text, content_save-as-pdf
/accessibility a11y_take-aria-snapshot, a11y_take-ax-tree-snapshot
/console, /network, /webvitals o11y_get-console-messages, o11y_get-http-requests, o11y_get-web-vitals
/trace o11y_set-trace-id, o11y_get-trace-id, o11y_new-trace-id
/intercept, /mock stub_intercept-http-request, stub_mock-http-response
/reload, /back, /forward navigation_reload, navigation_go-back-or-forward
/resize interaction_resize-viewport, interaction_resize-window
/figma figma_compare-page-with-design
/react react_get-component-for-element, react_get-element-for-component
/wait sync_wait-for-network-idle
/otel o11y_get-trace-id, o11y_get-console-messages
/run-js See run-js-browser — use execute (in page: page.evaluate(); server VM: no page).
(batch) execute — no slash command; use from agent/skill or CLI run execute or daemon POST /call. See commands/browser/execute.md for VM API (callTool, page).
Changes

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.

  1. 2d ago First seen · 25 lines · 0 tokens per session scan A 17fc593c3df8

Subscribe to this mod's changes

browser-reference is a command published in the GitHub repository serkan-ozal/browser-devtools-claude (8 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 415 tokens. 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-31.