You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Device tooling: `adb` (Android), `simctl`/`devicectl` (iOS via Xcode).
@@ -91,9 +91,10 @@ Coordinates:
91
91
|`ax`| Fast | Medium | Accessibility permission for the terminal app, not recommended |
92
92
93
93
Notes:
94
-
- Default backend is `xctest` on iOS.
94
+
- Default backend is `xctest` on iOS simulators and iOS devices.
95
95
- Scope snapshots with `-s "<label>"` or `-s @ref`.
96
-
- If XCTest returns 0 nodes (e.g., foreground app changed), agent-device falls back to AX when available.
96
+
- If XCTest returns 0 nodes (e.g., foreground app changed), agent-device falls back to AX on simulators when available.
97
+
-`ax` backend is simulator-only.
97
98
98
99
Flags:
99
100
-`--version, -V` print version and exit
@@ -184,14 +185,14 @@ Android fill reliability:
184
185
- If value does not match, agent-device clears the field and retries once with slower typing.
185
186
- This reduces IME-related character swaps on long strings (e.g. emails and IDs).
186
187
187
-
Settings helpers (simulators):
188
+
Settings helpers:
188
189
-`settings wifi on|off`
189
190
-`settings airplane on|off`
190
191
-`settings location on|off` (iOS uses per-app permission for the current session app)
191
-
Note: iOS wifi/airplane toggles status bar indicators, not actual network state. Airplane off clears status bar overrides.
192
+
Note: iOS supports these only on simulators in v1. iOS wifi/airplane toggles status bar indicators, not actual network state. Airplane off clears status bar overrides.
192
193
193
194
App state:
194
-
-`appstate` shows the foreground app/activity (Android). On iOS it uses the current session app when available, otherwise it falls back to a snapshot-based guess (AX first, XCTest if AX can’t identify).
195
+
-`appstate` shows the foreground app/activity (Android). On iOS it uses the current session app when available, otherwise it falls back to a snapshot-based guess (`xctest` on devices; AX-first on simulators with XCTest fallback).
195
196
-`apps --metadata` returns app list with minimal metadata.
196
197
197
198
## Debug
@@ -215,9 +216,10 @@ Boot diagnostics:
215
216
- Built-in aliases include `Settings` for both platforms.
216
217
217
218
## iOS notes
218
-
- Input commands (`press`, `type`, `scroll`, etc.) are supported only on simulators in v1 and use the XCTest runner.
219
-
-`alert` and `scrollintoview` use the XCTest runner and are simulator-only in v1.
220
-
- Real device support (including snapshots) is on the roadmap for iOS.
Copy file name to clipboardExpand all lines: skills/agent-device/SKILL.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: agent-device
3
-
description: Automates mobile and simulator interactions for iOS and Android devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing, scrolling, pinching, or extracting UI info on mobile devices or simulators.
3
+
description: Automates interactions for iOS simulators/devices and Android emulators/devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing, scrolling, or extracting UI info on mobile targets.
4
4
---
5
5
6
6
# Mobile Automation with agent-device
@@ -39,13 +39,13 @@ npx -y agent-device
39
39
40
40
```bash
41
41
agent-device boot # Ensure target is booted/ready without opening app
Copy file name to clipboardExpand all lines: skills/agent-device/references/session-management.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Sessions isolate device context. A device can only be held by one session at a t
14
14
- Name sessions semantically.
15
15
- Close sessions when done.
16
16
- Use separate sessions for parallel work.
17
+
- In iOS sessions, use `open <app>` for simulator/device. `open <url>` is simulator-only in v1.
17
18
- For dev loops where runtime state can persist (for example React Native Fast Refresh), use `open <app> --relaunch` to restart the app process in the same session.
18
19
- For deterministic replay scripts, prefer selector-based actions and assertions.
19
20
- Use `replay -u` to update selector drift during maintenance.
0 commit comments