Skip to main content
Glama

browser_snapshot

Read-only

Read the page on a ready sandbox's screen: its accessibility tree as an indented outline, one element a line, such as - link "About" [ref=42]. Give an element's ref to browser_click, browser_type or browser_scroll. Refs last until the page changes: take a new snapshot after navigating.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sandbox_id": "<sandbox_id>"
    },
    "name": "browser_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
sandbox_idYesThe sandbox, `sbx_…`.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page's URL.
titleYesThe page's title.
snapshotNoThe page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely new behavior: the indented one-element-per-line outline format and the ref lifecycle rule ('refs last until the page changes'). It stops short of describing handling of very large or empty pages, which is the only 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 compact sentences: what it returns, what to do with the refs, and the invalidation rule. The format example is front-loaded and every clause carries information.

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?

An output schema exists, so return values needn't be explained, yet the description usefully illustrates the outline format anyway. Combined with the ref-lifecycle note and the ready-sandbox precondition, an agent has what it needs; only edge cases like truncation or empty pages are unaddressed.

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?

One parameter with 100% schema description coverage, so the schema already explains sandbox_id. The description only adds the implicit prerequisite that the sandbox must be 'ready', which is marginal meaning beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — read the page's accessibility tree on a ready sandbox's screen — and pins down the exact output shape with an inline example (`- link "About" [ref=42]`). This is plainly distinguishable from the sibling action tools like browser_click and browser_navigate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly routes usage: feed element refs to browser_click, browser_type, or browser_scroll, and re-snapshot after navigating. It names the alternatives and the condition that makes this tool the right or wrong call (stale refs).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources