Skip to main content
Glama

get-page-snapshot

Reads a tab's accessibility snapshot and returns element references plus the snapshot ID required to act on page controls.

Instructions

Read a tab's accessibility snapshot, including element references and the snapshot ID needed to act on them.

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": {
      "pageId": "<pageId>"
    },
    "name": "get-page-snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the important behavioral fact that the returned references and snapshot ID are what subsequent actions depend on. It is silent on costly traits an agent would want: whether snapshots are expensive or large, whether they invalidate after navigation or DOM changes, and whether the whole tree is returned or truncated.

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 that front-loads the action and resource, then adds the payoff in the same clause. Nothing is redundant or padded.

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?

For a two-parameter read tool with no output schema, the description does a reasonable job of sketching the return value, which is the main thing the agent needs. It is still incomplete on the required pageId's origin and on snapshot validity/lifetime, both of which materially affect correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: sessionId is documented in the schema (with its 'default' fallback) but pageId is bare. The description does not say what a pageId is or where to obtain one (presumably from list-pages), nor restate the session default, so it does not compensate for the undocumented required parameter.

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?

The description states a specific verb and resource ("Read a tab's accessibility snapshot") and names the key payload (element references and snapshot ID). That already differentiates it from get-page-html and get-page-screenshot, though it never explicitly says how it differs from the close sibling get-element-snapshot.

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 implied rather than stated: "the snapshot ID needed to act on them" hints that this tool is a prerequisite for click/fill-style actions, which is useful. But there is no explicit when-to-use or when-not-to-use guidance versus get-page-html, get-element-info, or get-element-snapshot, so an agent must infer the choice.

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