Skip to main content
Glama

snapshot

Describes every visible window as an indented outline of components with refs, so you can locate elements and target them with click, type_text, select_option or screenshot.

Instructions

Describe what is on screen: every visible window as an indented outline of components (role, label, value, state) with a [ref=eN] for each element. Use refs with click, type_text, select_option and screenshot. Refs stay valid while the component exists. field= is the Java field holding the component, class= an application class. Prefer this over screenshot; use screenshot for custom-painted parts and layout.

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
windowNoRef of a single window to describe
maxRowsNoRows/items listed per table or list (default 10; trees twice that). read_items reads the rest
expandMenusNoAlso list items of closed menus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and mostly delivers: it discloses ref lifetime semantics ('Refs stay valid while the component exists'), the output structure, and the meaning of field=/class= attributes. It stops short of stating outright that the call is read-only/no-side-effect or discussing cost/latency, which matters for an accessibility-tree walk.

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?

Four tight sentences, front-loaded with the purpose and output format, then usage guidance, then ref lifetime. The 'field=/class=' sentence is dense and slightly cryptic but still earns its place by explaining output attributes.

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 three-parameter, zero-required introspection tool with no output schema and no annotations, the description covers output format, ref validity, and sibling routing well. The main residual gap is that the read-only/side-effect-free nature of the call is only implied rather than stated.

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 window, maxRows, and expandMenus are already documented in the schema, including the read_items fallback for truncated lists. The description adds only indirect meaning (that a window ref is the same ref currency used by click/type_text), so the 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?

Opens with a specific verb and resource ('Describe what is on screen') and immediately specifies the exact output shape: an indented outline of components with role, label, value, state, and [ref=eN] per element. This is unmistakably distinct from siblings like screenshot, which it explicitly contrasts with.

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 the agent: 'Prefer this over screenshot; use screenshot for custom-painted parts and layout.' It also names the downstream consumers of refs (click, type_text, select_option, screenshot), so an agent knows both when to call this and what to do with the result.

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