Skip to main content
Glama

browser_snapshot

Read-onlyIdempotent

Capture a page's accessibility tree with @eN references to inspect and target interactive elements; optionally filter to actionable controls for compact views.

Instructions

Capture accessibility tree with @eN refs. Use actionable_only=true for compact interactive views.

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
tabNoTab index string (e.g. '0'), targetId, or URL/title substring.
frameNoIframe #fN, id, URL substring, or 'any'.
limitNoMax nodes (default 220).
filterNoRegex filter on node names.
actionable_onlyNoOnly clickable/fillable controls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds only the @eN ref output characteristic and the compact-view hint. It does not mention truncation behavior from the node limit or how refs persist across calls.

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?

Two short sentences, front-loaded with the core action and output type. Every clause carries information; nothing is padded.

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?

For a read-only snapshot tool with zero required parameters and no output schema, the description conveys the essential return type (accessibility tree with @eN refs) and a key usage lever. Minor gap: it doesn't address what happens when the limit truncates results or how refs are consumed downstream.

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?

Schema description coverage is 100%, so all five parameters are already documented in the schema. The description restates actionable_only's meaning ('compact interactive views') without adding syntax or format detail beyond the schema's 'Only clickable/fillable controls.' Baseline 3 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 resource: 'Capture accessibility tree with @eN refs.' The '@eN refs' detail distinguishes it from generic DOM/text extraction siblings. It does not explicitly name which sibling to use instead, keeping it just below a 5.

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?

The actionable_only hint implies a use case (interactive element discovery for later clicking/filling), but there is no explicit when-to-use or when-not guidance relative to browser_dom, browser_text, or browser_screenshot. Usage is inferred rather than stated.

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