Skip to main content
Glama

browser_snapshot

Capture a compact, token-efficient snapshot of the active page with numbered interactive elements, smart labels, headings, and accessible iframes; optionally scope by CSS selector or viewport.

Instructions

Capture a compact, token-efficient snapshot of the active page showing interactive elements with numbered references (@1, @2, ...), smart labels (icons/images/CSS backgrounds), headings, and accessible iframes. Supports scoping to a CSS selector and viewport-only filtering.

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
passiveNoIf true, captures snapshot purely via native CDP Accessibility domain without executing any JavaScript in the page.
selectorNoOptional CSS selector to scope snapshot to a specific DOM container
in_viewportNoIf true, only include elements currently visible in viewport
max_elementsNoMaximum interactive elements to include (truncates remainder to save tokens)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.13.0
    • addedInput schema / properties / passive
      Added value: +{
      +  "default": false,
      +  "description": "If true, captures snapshot purely via native CDP Accessibility domain without executing any JavaScript in the page.",
      +  "type": "boolean"
      +}
  2. First observedv0.8.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the output shape well (numbered references, labels, headings, iframes) but says nothing about side effects, the requirement that a page/tab be active, or what happens when nothing is loaded; the important 'no JavaScript executed' nuance lives only in the passive parameter's schema description.

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?

Two tight sentences, front-loaded with the core action and followed by capability scoping; every clause carries information. The parenthetical '(icons/images/CSS backgrounds)' is slightly dense but earns its place by clarifying 'smart labels'.

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

Completeness3/5

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

With four all-optional parameters and no output schema, describing the returned structure is genuinely valuable and is done here. However, the definition omits the operational prerequisites and failure modes that matter for a browser page tool, leaving a real completeness gap for a zero-annotation tool.

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%, so all four optional parameters (passive, selector, in_viewport, max_elements) are already documented in structured form. The description only echoes two of them ('scoping to a CSS selector and viewport-only filtering') without adding syntax, defaults, or interaction details, so the baseline 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 a compact, token-efficient snapshot of the active page') and enumerates the content of the result: numbered @refs, smart labels, headings, accessible iframes. That is well beyond restating the name, though it never names a sibling such as browser_diff_snapshot or browser_compare_screenshots to delimit itself.

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. 'Token-efficient' hints at why an agent would prefer this over a screenshot or eval-based DOM dump, but the agent must infer that comparison rather than being told.

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

Deploy Server

Other Tools