Skip to main content
Glama

browser_snapshot

Capture a browser tab's structured accessibility tree and numbered interactive elements to inspect page state and target buttons, inputs, or links for automation.

Instructions

Capture the structured accessibility tree and numbered interactive elements (buttons, inputs, links) from a browser tab (the focused one unless tabId is given).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
diffNo
textNo
queryNo
rolesNo
tabIdNoOptional browser tab id to act on instead of the focused tab.
shadowNo
maxNodesNo
refPrefixNo
allElementsNo
minImageAreaNo
includeImagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden. It discloses the target (focused tab by default) and the nature of the payload, but says nothing about snapshot size, truncation via maxNodes, whether the call mutates page state, or what the returned structure looks like beyond a phrase. That leaves most behavioral questions unanswered for an 11-parameter tool.

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?

It is a single front-loaded sentence with no filler, and the core object of the action comes first. The trailing parentheticals are dense but each adds a small amount of scope 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 tool with 11 optional parameters, zero annotations, and no output schema, this one-sentence definition is far too thin. An agent would have to open and guess at the schema to use diff, query, roles, or maxNodes correctly, and nothing explains what the snapshot response contains.

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

Parameters2/5

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

Schema description coverage is only 9% — tabId is the sole documented parameter — so the description must compensate and does not. Flags such as diff, text, query, roles, shadow, maxNodes, refPrefix, allElements, minImageArea, and includeImages are neither explained nor even acknowledged, and the reader cannot tell what toggling them changes.

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 a specific verb and resource: it captures the accessibility tree plus numbered interactive elements (buttons, inputs, links) from a browser tab. That is concrete enough to separate it from visual-capture tools like browser_screenshot, but it never names or contrasts a sibling explicitly, so an agent must infer the boundary.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisite context, and no pointer to alternatives such as browser_screenshot or browser_read. The only conditional statement concerns tab targeting (`the focused one unless tabId is given`), which is parameter behavior rather than usage guidance.

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