Quick start
This run drives GNOME Calculator on Linux: check the install, map the app, drill into one region, press a button, confirm the display changed, and put the app back. Every output below is real, trimmed where noted.
Start GNOME Calculator in your graphical session, and run the commands from a terminal in the same session. On macOS or Windows, use an app name that list-apps prints (for example "Calculator") and expect different refs. In PowerShell, quote every ref ('@s2txcl95uvubmn:e1'); see Windows.
Check the install
data.permissions.accessibility.state should be granted, and data.supported_surfaces should not be empty. Agents load the platform skill before their first action; see Skills.
Map the app
A skeleton snapshot reads three levels and marks each cut branch with children_count:
The tree is trimmed: wrapper groups and native_id fields are removed. e1 is the calculator body and e2 is the header bar. Every ref carries its snapshot id; pass it to later commands exactly as printed.
Drill into a region
The drill reads e1's subtree and adds 31 refs (e3 to e33) to the same snapshot. Two of them:
e6 is the display and e11 is the 7 button. How drill targets and re-drills work is in Skeleton and drill-down.
Act on a ref
The click went through the accessibility API (semantic_api), without moving the cursor. delivered_unverified means it was dispatched but nothing confirmed the effect yet, and retry: unsafe means a repeat could press 7 twice. See JSON output.
Verify
The app updates its display asynchronously, so wait for the value instead of reading once or sleeping:
get @s2txcl95uvubmn:e6 --property value now returns "7". A read taken immediately after the click can still show the old value, which is why the verify step waits. See Waiting without sleeps.
Restore the state
Press C (e8 in the same drill) so the app is as you found it:
Next steps
- The observe, act, verify loop: the loop as practice.
- Errors and recovery: what to do when a ref is stale or ambiguous.
- Commands: every command and flag.