Skip to main content
Glama
yogesh-joshi-0333

browser-control-mcp-server

Browser Accessibility Snapshot

browser_snapshot

Capture a compact accessibility-tree snapshot of a page for browser automation, returning refs for interactive elements and optional diffs to track changes after actions.

Instructions

Get a compact accessibility-tree view of the page: interactive and semantic elements (links, buttons, inputs, headings, landmarks) as a small indented text list, each tagged with a stable ref like [ref=e12]. Far cheaper than browser_get_dom for finding what to interact with — use this first when exploring an unfamiliar page. Every ref is also a valid CSS selector — pass [data-mcp-ref="e12"] directly as the selector argument to browser_click, browser_type, browser_hover, or browser_select_option. Pass diff:true to get only what changed since your last browser_snapshot call in this session — much cheaper than a full snapshot for checking the result of a click/type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffNoIf true, return only elements added/removed since the last browser_snapshot call for this session, instead of the full tree. First call always returns the full snapshot.
modeNoForce a specific mode. Defaults to extension.
maxNodesNoMaximum number of elements to include (default 300). Lower it for a shorter list, raise it for exhaustive coverage of a large page.
sessionIdNoPuppeteer session ID for headless mode. Skips mode selection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it well: it discloses the return format (small indented text list), the stable ref mechanism, and the session-scoped diff behavior including the first-call caveat. It stops short of covering failure modes, permissions, or how mode/sessionId interact in headless vs extension contexts, so it is strong but not exhaustive.

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

Conciseness5/5

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

Front-loads what the tool returns, then when to prefer it, then the ref-to-selector handoff, then the diff optimization. Each sentence delivers distinct, actionable information with no filler despite the density.

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

Completeness5/5

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

No output schema and no annotations exist, so the description must describe returns and behavior itself, and it does: output shape, ref format, cross-tool selector usage, and diff semantics are all covered. An agent has everything needed to call this correctly.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description goes beyond the schema by explaining the cross-tool consequence of refs ('every ref is also a valid CSS selector — pass `[data-mcp-ref="e12"]` directly as the selector argument to browser_click ...'), which meaningfully informs how parameters of this and sibling tools connect.

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

Purpose5/5

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

States a specific verb and resource ('Get a compact accessibility-tree view of the page') and enumerates the element kinds returned. It explicitly distinguishes itself from the sibling browser_get_dom by calling itself 'far cheaper ... for finding what to interact with', so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('use this first when exploring an unfamiliar page'), names the alternative it supersedes (browser_get_dom), and describes a distinct conditional mode ('Pass diff:true ... for checking the result of a click/type'). This is precisely the routing guidance an agent needs.

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