agent-device
iOS और Android ऐप इंटरैक्शन को स्नैपशॉट-आधारित खोज और सेलेक्टर-संचालित रीप्ले के साथ स्वचालित करें। iOS सिम्युलेटर/डिवाइस और Android एमुलेटर/डिवाइस को सपोर्ट करता है, जिसमें सत्र-बद्ध ऑटोमेशन, मल्टी-टेनेंट रिमोट डेमन मोड और QA वर्कफ़्लो के लिए डिवाइस-स्कोप आइसोलेशन शामिल है। मुख्य कमांड: UI खोज के लिए रेफ़ के साथ स्नैपशॉट, इंटरैक्शन के लिए प्रेस/फ़िल/स
npx skills add https://github.com/callstackincubator/agent-device --skill agent-deviceagent-device
For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:
agent-device open <app> --foreground
That starts the session and returns the initial interactive snapshot with @refs.
Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation (wait text "...", is, get, or find), then run agent-device close.
Copy refs byte-for-byte: @e12, @e12~s4 — keep the @ and any ~sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target.
Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, but is not a startup step.