check-browser

A command guide for checking the page currently open in a browser using browser-control tools.

In plain words
What is it for?
Verifying that a website renders correctly, checking forms and buttons, and investigating browser issues.
Why use it?
It gives an agent a repeatable way to inspect page content, errors, and visual changes after code updates.

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/compnew2006/browser-controller/check-browser
Clone the repo
git clone --depth 1 https://github.com/compnew2006/browser-controller
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 384 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.00384
Opus 5 $0.00000 $0.00192
Sonnet 5 $0.00000 $0.00077
Haiku 4.5 $0.00000 $0.00038

Measured yesterday against content hash 938f779fa770, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

check-browser 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 yesterday.

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.

agent-config/cursor/commands/check-browser.md · 33 lines

What it actually says

check-browser

Use Browser Controller to check what's currently showing in my browser.

Steps

  1. Call browser_tabs { action: "list" } to get a tabId
  2. Call browser_snapshot { tabId } to see the current page structure (refs are tab-scoped)
  3. Based on what you find, take a browser_screenshot { tabId } if visual verification is needed
  4. Report back what you see - page title, key elements, any errors or unexpected state
  5. If I asked you to verify something specific, focus on that

When to use

  • After making a code change, to verify it rendered correctly
  • To check if a form works, a button does what it should, or content loaded
  • To read page content I'm looking at
  • To debug visual issues or check responsive layout

Reading the snapshot efficiently

  • isNew: true on a ref means that element appeared since the last snapshot — focus on those when something just changed (e.g. an overlay opened after a click). You don't need to re-read the whole tree.
  • After browser_scroll, expect refsMayBeStale: true — re-snapshot before interacting on feeds like Facebook/Instagram that recycle DOM nodes.
  • If a click returns freshRefs, the element was scrolled away — retry with one of the new refs in the same response (no separate snapshot needed).

Important

  • This is my REAL browser. I'm already logged in everywhere.
  • Always pass tabId — never assume the active tab is the one to act on.
  • Don't close tabs I didn't ask you to close.
  • Don't navigate away from the current page unless I ask you to.
  • Use element refs from snapshots for any interactions; refs are valid only for the tabId that produced them.
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. yesterday First seen · 33 lines · 0 tokens per session scan A 938f779fa770

Subscribe to this mod's changes

check-browser is a command published in the GitHub repository compnew2006/browser-controller (1 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 384 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.