Skip to main content
Glama
computer
by zznabil

Screenshot + accessibility tree

observe
Read-onlyIdempotent

Captures a target's screenshot and accessibility tree in one call, with frame ID and token estimate; use low detail for smaller verification images.

Instructions

Screenshot and AX tree of one target in one call. The full image includes a caption with its frame id and any superseded frame, plus an estimated token cost. Use detail: low for a smaller screenshot.

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": {
      "target": "<target>"
    },
    "name": "observe"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoInclude nodes normally pruned as uninteresting.
detailNoUse low for verification images bounded by 1024×576 or full for the normal bounds. The configured image max edge also applies.
targetYesWindow id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard.
maxDepthNoMaximum tree depth.
maxNodesNoMaximum node count.
maxWidthNoMax delivered width (default 1366).
maxHeightNoMax delivered height (default 768).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.0
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "Use low for verification images bounded by 1024×576 or full for the normal bounds. The configured image max edge also applies.",
      +  "enum": [
      +    "full",
      +    "low"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / target / description
      Previous value: -"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard."
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / target / description
      Previous value: -"Window id from list_windows, \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."
  3. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: the image carries a caption with its frame id and any superseded frame, plus an estimated token cost, which tells the agent what it will receive and that stale frames are flagged.

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?

Three short sentences, front-loaded with what the tool produces, then output detail, then the parameter hint. No filler, though the caption/frame-id sentence is dense enough that it could be split for readability.

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 seven-parameter read tool with full schema coverage and no output schema, the description covers the key return-shape facts (caption, frame id, superseded frame, token cost) and one cost-control lever. The AX tree payload itself is left unexplained, which is a minor gap given the name already signals it.

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 100%, so the schema already documents all seven parameters, including the detail enum bounds. The description's mention of detail: low duplicates the schema rather than extending it, so the baseline of 3 is appropriate.

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?

"Screenshot and AX tree of one target in one call" names the two concrete resources and the scoping (one target), and the phrase "in one call" implicitly distinguishes it from the separate screenshot and ax_tree siblings. It stops short of explicitly naming those siblings as alternatives, so an agent must infer the routing rule.

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 only implied: the combined capture suggests when this is preferable to the single-purpose siblings, and "Use detail: low for a smaller screenshot" gives a situational hint. There is no explicit when-to-use/when-not guidance, no statement of prerequisites, and no named alternative.

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