Skip to main content
Glama

browser_snapshot

Capture an accessibility snapshot of the current page to obtain [ref=eN] handles for clicking and typing, and refresh it after navigation or clicks.

Instructions

Get an accessibility snapshot of the current page. Every interactive element has a [ref=eN] handle — use those refs with browser_click and browser_type. Take a fresh snapshot after any navigation or click.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 load and does disclose important behavior: the return value is an accessibility tree, interactive elements carry ref handles, and those refs go stale after navigation or clicks. It omits any note on size, truncation, or latency for large pages, which is the main remaining gap.

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?

Three short sentences, each earning its place: what it returns, how to use the returned refs, and when to re-invoke. The key output detail (the ref handles) is front-loaded.

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

Completeness4/5

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

There is no output schema and no annotations, so the description must explain the return value, which it does via the accessibility tree and ref handles. It is nearly complete for a zero-parameter read tool, with only edge-case behavior for very large or empty pages left unstated.

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?

The tool takes zero parameters, so the baseline of 4 applies. The description correctly implies there is nothing to configure and instead explains how to consume the output.

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 states a specific verb and resource: 'Get an accessibility snapshot of the current page.' That is concrete enough that an agent can tell it apart from a screenshot tool by the word 'accessibility,' but it never explicitly contrasts itself with browser_screenshot or browser_console, so the differentiation is left 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 Guidelines4/5

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

It gives clear operational guidance: use the [ref=eN] handles with browser_click and browser_type, and take a fresh snapshot after any navigation or click. It covers when to call it and what to do next, but offers no explicit when-not or an alternative to pick when only a visual capture is needed.

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