Skip to main content
Glama

Snapshot

browser_snapshot

Return the current page as an accessibility tree with interactive element references, enabling AI agents to inspect content and target click or type actions.

Instructions

Return the current page as an accessibility tree plus interactive elements with refs for browser_click / browser_type.

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.3-alpha.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose the return shape (accessibility tree + interactive elements with refs) and the purpose of those refs. It omits behavioral traits that matter here: whether output is truncated for large pages, whether refs become stale after page changes, and whether it waits for load.

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?

A single sentence with the result front-loaded and the downstream consumers named at the end. Nothing is wasted and nothing essential is buried.

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, so the description must characterize the return value, and it does so adequately for a zero-parameter tool. The main residual gap is guidance on ref validity/refresh, which is not covered anywhere in structured fields.

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 no parameters, so there is no parameter meaning to convey; the schema is empty and complete. Baseline 4 applies.

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?

States a specific verb and result ('Return the current page as an accessibility tree plus interactive elements'), which clearly separates it from the image-producing siblings browser_screenshot and browser_full_screenshot without naming them. It stops short of an explicit contrast, so an agent must infer that this is the structured, actionable view.

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?

Usage is only implied: by saying the refs feed browser_click / browser_type, it hints this is the step before interacting. There is no explicit when-to-use vs browser_extract_text or browser_screenshot, and no statement about needing to re-snapshot after navigation.

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