Skip to main content
Glama

tool_skyshot

Read a window's accessibility tree as compact text. Each element line is '{index} {indent}{role} {name}{Value: ...}{(state)}'.

Instructions

Read a window's accessibility tree as compact text. Each element line is '{index} {indent}{role} {name}{Value: ...}{(state)}'. After the first shot, the result is a diff by default: '~' shows changed or renumbered elements, '+' shows additions, and removed indices refer to the previous shot. Unchanged lines are omitted. For tool_element_action_at, pass the returned hwnd and shot_id plus an index printed on an element line in this response. Taking another shot of the same window invalidates that pair. Pass disable_diff=true to see the full tree and act on an omitted element. The shot_key identifies the window, while shot_id identifies this observation. Pass include_offscreen=true to include scrolled-out or hidden elements. A minimized window may expose only part of its tree; restore the window and read again if needed. Element values can contain window content. Read-only: no input injection or focus change.

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

Input Schema

NameRequiredDescriptionDefault
hwndNo
titleNo
max_depthNo
max_nodesNo
disable_diffNo
include_valuesNo
include_offscreenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.1/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 mostly succeeds: it declares read-only behavior with no input injection or focus change, explains the default diff mode and its sigils, warns about shot_id invalidation, and flags that element values may contain window content. It omits what happens when max_nodes/max_depth truncation occurs, so an agent cannot tell whether a short tree is genuinely short.

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?

Front-loaded with the output format, then grouped into diff semantics, action pairing, and flags. Nearly every sentence earns its place, though the shot_key vs. shot_id distinction arrives after the invalidation rule it explains and reads as slightly out of order.

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?

An output schema exists, so return values need not be spelled out, and the description covers the diff encoding, action handoff, and edge cases like minimized windows well. The remaining gap is truncation behavior for max_depth and max_nodes, which matters for a 7-parameter tree-walking tool with no annotations.

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 0%, so the description must compensate for all seven parameters, and it only explains disable_diff, include_offscreen, hwnd (as a returned value to reuse), and hints at include_values via the 'values can contain window content' note. max_depth, max_nodes, and title are never mentioned, leaving the most likely cause of incomplete output undocumented.

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?

States a specific verb and resource: 'Read a window's accessibility tree as compact text.' It also distinguishes itself from tool_element_action_at by describing itself as the source of hwnd/shot_id/index values that tool consumes, so an agent can place it in the workflow without opening sibling schemas.

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?

Gives concrete conditional guidance: use disable_diff=true when you need to act on an omitted element, include_offscreen=true for scrolled-out elements, and re-read after restoring a minimized window. It also states the invalidation rule that taking another shot breaks the hwnd/shot_id pair. It stops short of naming when to prefer tool_find_elements or tool_read_element instead of reading the whole tree.

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