Skip to main content
Glama

snapshot

Lists a page's interactive elements and headings with refs grouped by region, so you can target them for clicks, typing, and form fills. Refs reset after each run and break after navigation.

Instructions

List the page's interactive elements (buttons, links, fields, checkboxes…) and headings with refs like [ref=e5], grouped by page region. Use refs with click/type/etc. Refs reset on each snapshot and break after navigation.

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": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMax elements (default 300). Elements in view come first.
tabIdNoTab ID from tabs_list. Omit for the active tab.
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.
interactiveOnlyNoSkip headings/images. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the ref lifecycle (reset per snapshot, break after navigation) and that results are grouped by page region. It does not say whether the page must be loaded first or how truncation beyond the element cap behaves.

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, front-loaded with what is returned, then how to use it, then the critical caveat. No filler or redundant restatement of the name.

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 four-optional-parameter listing tool with no output schema, the description covers return shape, grouping, and ref validity well. Minor gaps remain around page-load preconditions and truncation behavior when the element cap is hit.

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 max, tabId, profile and interactiveOnly are already documented in the schema. The description's mention of headings only loosely implies interactiveOnly; it adds no format or behavior detail beyond what structured fields provide, so 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: 'List the page's interactive elements ... and headings', and even shows the output token shape ([ref=e5]) and grouping. It is immediately clear what the tool returns, though it never names a sibling (e.g. find or get_text) to distinguish itself from other element-reading tools.

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 refs with click/type/etc.' gives clear downstream usage context, and the reset/navigation caveat tells the agent when a prior snapshot is invalid. It stops short of explicit when-not-to-use guidance or pointing to an alternative for searching rather than listing.

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