inspect_app
Inspect a permitted app's accessibility tree by bundle ID or frontmost desktop, with automatic diffing of repeat views to reduce tokens while keeping element refs live and actionable.
Instructions
AX-first semantic inspection of a permitted app bundle ID or 'desktop' (frontmost app). Auto-diffs repeat views (state_mode='full'|'diff'|'unchanged'|'filtered') to minimize tokens while keeping refs live; pass diff=false for full baseline, include_bounds=true for @(x,y,wxh), or query for filtered lookup. Returns compact accessibility tree with refs (e1, e2...) and learned workflow hints.
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": "inspect_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| diff | No | Enable incremental AX tree diffing vs prior snapshot of the same app/window (defaults to config snapshot.ax_diff, true). | |
| query | No | ||
| window | No | ||
| include_bounds | No | Include @(x,y,wxh) element coordinates in AX outlines (defaults to config snapshot.include_bounds, false). |