Skip to main content
Glama

browser_snapshot

Read-only

Capture an accessibility snapshot of the current page to get element references for interaction; pass a ref to return only that subtree.

Instructions

Capture accessibility snapshot of the current page. Use this for getting references to elements to interact with. Pass a ref to see only that part of the page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoOnly return the subtree of this element

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Only return the subtree of this element",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavioral context: the tool's role as the producer of element refs that other tools consume, and the scoping effect of passing a ref.

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, zero filler, with the primary purpose front-loaded and the parameter guidance last. Every sentence earns its place.

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 single-parameter read tool with no output schema, the description adequately covers purpose, usage, and the ref-scoping behavior. It could be slightly more complete by noting the ref format/prefix convention, but nothing critical is missing.

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 coverage is 100% and the ref property already documents "Only return the subtree of this element"; the description's "Pass a ref to see only that part of the page" largely restates it. Baseline 3 is appropriate when the schema carries the parameter documentation.

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 snapshot of the current page") and uses vocabulary that distinguishes it from the screenshot sibling. It does not explicitly name browser_screenshot to rule it out, so it stops short of 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 Guidelines4/5

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

"Use this for getting references to elements to interact with" gives concrete when-to-use context that links it to the click/type/hover siblings. There is no explicit when-not or named alternative, but the context is clear.

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