Read what's in an app's windows
ui_snapshotRead the accessibility tree of an app's windows, sheets and dialogs to inspect panels, progress and element ids for clicking or setting values. Zoom into one element with within to keep results short.
Instructions
Read the accessibility tree of an app's windows, sheets and dialogs: each element's id, role, label and value. Use it to see panels, inspectors, dialogs and progress, and to get element ids for ui_click and ui_set_value. Pass within to zoom into one element. Defaults are small to keep results short (depth 6, 120 elements); when truncated is true, zoom in with within, or raise depth and maxNodes for that one call.
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": {
"app": "<app>"
},
"name": "ui_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| depth | No | ||
| within | No | Element id to start from | |
| maxNodes | No |