Skip to content

Commit 44d3d22

Browse files
committed
docs: clarify no automatic AX fallback
1 parent e7df39a commit 44d3d22

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

skills/agent-device/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ agent-device snapshot -d 3 # Limit depth
6464
agent-device snapshot -s "Camera" # Scope to label/identifier
6565
agent-device snapshot --raw # Raw node output
6666
agent-device snapshot --backend xctest # default: XCTest snapshot (fast, complete, no permissions)
67-
agent-device snapshot --backend ax # macOS Accessibility tree (fast, needs permissions, less fidelity, optional)
67+
agent-device snapshot --backend ax # macOS Accessibility tree (manual diagnostics only; no automatic fallback)
6868
```
6969

70-
XCTest is the default: fast and complete and does not require permissions. Use AX only for manual diagnostics, and prefer XCTest for normal automation flows.
70+
XCTest is the default: fast and complete and does not require permissions. Use AX only for manual diagnostics, and prefer XCTest for normal automation flows. agent-device does not automatically fall back to AX.
7171

7272
### Find (semantic)
7373

skills/agent-device/references/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## iOS AX snapshot
44

5-
AX snapshot is an alternative to XCTest for when it fails (which shouldn't happen usually); it uses macOS Accessibility APIs and requires permission:
5+
AX snapshot is available for manual diagnostics when needed; it is not used as an automatic fallback. It uses macOS Accessibility APIs and requires permission:
66

77
System Settings > Privacy & Security > Accessibility
88

skills/agent-device/references/snapshot-refs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ agent-device snapshot -i -s @e3
5656
- AX returns Simulator window: restart Simulator and re-run.
5757
- AX empty: verify Accessibility permission or use `--backend xctest` (XCTest is more complete).
5858
- AX backend is simulator-only; use `--backend xctest` on iOS devices.
59+
- agent-device does not automatically fall back to AX when XCTest fails.
5960

6061
## Replay note
6162

website/docs/docs/commands.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ agent-device get attrs @e1
3535

3636
- `--backend xctest` works on iOS simulators and iOS devices.
3737
- `--backend ax` is simulator-only.
38+
- agent-device does not automatically switch from XCTest to AX; choose AX explicitly only for diagnostics.
3839

3940
## Interactions
4041

website/docs/docs/snapshots.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ agent-device snapshot -i -c -d 5 # Combine options
2323
| `-s <scope>` | Scope to label/identifier |
2424

2525
Note: If XCTest returns 0 nodes (foreground app changed), agent-device fails explicitly.
26+
It does not automatically switch to AX.
2627

2728
## Example output:
2829

0 commit comments

Comments
 (0)