Skip to main content
Glama

snapshot

Capture the current accessibility tree and compare it against a previous session baseline. Use returned refs for semantic UI interaction, and the diff option to verify UI changes after actions.

Instructions

Capture the accessibility tree or compare it with the previous session baseline. Use the returned refs for subsequent semantic interactions and the diff option to verify UI changes. Times out after 90s; a caller-supplied budget extends it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNo
udidNoiOS device UDID selector.
debugNoEnable debug diagnostics.
depthNo
runIdNoLease run identifier.
scopeNo
deviceNoDevice name selector.
recordNoForce-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this.
serialNoAndroid device or Vega VVD serial selector.
targetNoAlias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.
tenantNoRemote tenant identifier.
leaseIdNoExisting lease identifier.
sessionNoAgent-device session name.
noRecordNoDo not record this action.
platformNoPlatform selector used to resolve a device.
forceFullNo
timeoutMsNoMaximum wall-clock time for the snapshot command.
includeCostNoInclude per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.
deviceTargetNoDevice target form. Maps to the CLI --target flag.
customActionsNoName the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.
responseLevelNoResponse verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.
interactiveOnlyNo
mcpOutputFormatNoMCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.
androidDeviceAllowlistNoAndroid serial allowlist used for device resolution.
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the 90-second timeout and the ability to extend it with a caller-supplied budget, and implies a read-only snapshot behavior. However, it does not mention possible side effects such as the optional 'record' behavior, or describe the response format, which matters given the absence of an output schema.

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?

The description is three focused sentences: purpose, usage guidance, and a critical behavioral note. It is front-loaded with the main action, avoids fluff, and every sentence adds value.

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

Completeness2/5

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

Given 24 parameters, no annotations, no output schema, and 52 sibling tools, this three-sentence description is insufficient. It does not explain the return structure beyond 'refs', does not cover side effects, and does not provide enough differentiation or parameter guidance for correct invocation in a complex MCP environment.

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 description coverage is 79%, slightly below the high threshold, so the description should add some parameter meaning. It adds context for timeoutMs by stating the default 90-second timeout and that a caller-supplied budget extends it, but it does not describe the five undocumented parameters or clarify the ambiguous 'diff option'.

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 clearly identifies the action: 'Capture the accessibility tree or compare it with the previous session baseline' and mentions returning refs for semantic interactions. However, the phrase 'diff option' is ambiguous because no diff parameter exists in the input schema and a sibling tool named diff is available, so it does not fully distinguish this tool from related siblings.

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?

The description gives direct usage guidance: use the returned refs for subsequent semantic interactions and use the diff option to verify UI changes. This provides a clear context for when to invoke snapshot, though it does not explicitly state when not to use it or name alternatives beyond the vague 'diff option'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/callstack/agent-device'

If you have feedback or need assistance with the MCP directory API, please join our Discord server