Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_snapshot

Capture a browser tab's accessibility tree with element references, scoped by target or query, to inspect UI structure and track changes via delta snapshots; passwords are masked.

Instructions

Accessibility tree with refs; scope by target or query. Passwords are masked. With delta:true, pass the prior revision as since.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "browser_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
deltaNoRequest incremental snapshot
queryNo
sinceNoPrior revision
tabIdYes
targetNoTarget.
maxCharsNoDefault 8000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden; it does disclose two genuinely useful behaviors: passwords are masked in output, and delta mode requires the prior revision via 'since'. It says nothing about read-only semantics, whether the snapshot truncates output (maxChars defaults to 8000 per schema), or how long returned refs stay valid.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense clauses with zero filler, purpose front-loaded before the scope and delta mechanics. The telegraphic style costs a little clarity but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, annotation-free tool with no output schema, the description is thin: it never describes the shape of the returned tree or refs (the thing agents must act on), and omits the required tabId and the maxChars truncation default. The masking and delta notes are good but do not compensate for these gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds real meaning for target/query scoping and for the delta+since pairing that the schema states only tersely. However, tabId is the sole required parameter and is undocumented in both schema and description, and maxChars/truncation behavior is not addressed at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the specific resource returned – the accessibility tree with element refs – and hints at scope controls, so an agent can tell this is a page-structure snapshot tool. It does not, however, contrast it with near siblings such as browser_text, browser_inspect_element, or browser_screenshot, leaving the choice to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Scope by target or query' and the delta/since instruction give conditional invocation guidance, which is useful. But there is no statement of when to prefer this snapshot over browser_text or browser_inspect_element, and no preconditions such as needing a navigated tab.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.