desktop_snapshot
Read a macOS window as structured text so AI agents can inspect UI elements by reference and get only changed lines instead of screenshots.
Instructions
Read a window as text: one line per element eN role "name" ="value" [states]; refs are @:eN from the header. goal = words on screen to keep only related elements; root = a ref to drill into; surface = menubar | menu | menu-bar-extras | sheet | popover | alert; diff = only changes since your last view. interactive_only hides read-only text such as a result display. For a menu command use find(surface=menubar, name=…) and click it. ^(…) marks superscript text (2^(10) = 2¹⁰).
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": "desktop_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| diff | No | ||
| goal | No | ||
| root | No | ||
| compact | No | ||
| surface | No | window | |
| skeleton | No | ||
| max_depth | No | ||
| window_id | No | ||
| timeout_ms | No | ||
| include_bounds | No | ||
| interactive_only | No | ||
| force_electron_a11y | No |