argent-device-interact
Drive iOS, Android, or Chromium apps with Argent MCP tools. Use when tapping, swiping, typing, launching apps, waiting for UI, or taking screenshots (not for TV targets).
How do I install this agent skill?
npx skills add https://github.com/software-mansion/argent --skill argent-device-interactIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates automated interaction with iOS, Android, and Chromium applications. It includes advanced developer capabilities such as reading browser cookies, modifying system permissions, and building mobile application packages. It implements a secure placeholder system for credential handling to prevent secret exposure in prompts.
- Socketpass
No alerts
- Snykfail
Risk: HIGH · 3 issues
What does this agent skill do?
Each tool's description carries its parameters, defaults, and return shape. This skill covers routing and gotchas those descriptions don't state.
Target Routing
- Get a
udidfromlist-devices(orboot-deviceif none is ready). Full setup:argent-ios-simulator-setup/argent-ios-device-setup/argent-android-emulator-setup. - Before driving a specialized target, read the matching instructions below:
- Physical iPhone (
kind: "device"):argent-ios-device-setupandargent-ios-device-interact - Mac app (
platform: "macos"):argent-macos-app-interact - TV (
runtimeKind: "tv"orplatform: "vega"):argent-tv-interact - Chromium / HarmonyOS / foldables (
foldable: true):references/chromium.md,references/harmonyos.md,references/foldables.md
- Physical iPhone (
- Load any deferred tool's schema (e.g.
gesture-custom,gesture-pinch,gesture-rotate) before its first call so numbers don't serialize as strings. - If delegating device tasks to sub-agents, ensure they have MCP permissions.
Core Rules
- Open apps directly: use
launch-apporopen-url, never tap home-screen icons. Userestart-appfor clean in-memory state. - Use the returned element tree: interaction tools already attach a downscaled screenshot and
--- Elements after action (describe) ---with normalized[0,1]tap frames. Calldescribeonly when no fresh tree covers the current screen. Never derive routine tap coordinates from pixels. - Tree & screenshot IDs: full trees/screenshots carry a
Tree id/Screenshot id. When unchanged or slightly changed, a later result references that id (unchanged note or-/+diff); calldescribeorscreenshotif that earlier result isn't in context. An identical tree does not mean the action did nothing. - Batch known steps: use
run-sequencewhen multiple consecutive steps are known ahead of time (scroll sweeps, type + enter, form fill + submit). - Text entry: tap the field first (
keyboardwith no focus is a silent no-op).keyboardtakes eithertextorkey, not both. Keepkeyboardas default; reservepastefor real paste flows (OTP, long tokens). Use{{secret:<NAME>}}placeholders for credentials and navigate/submit before capturing non-secure fields. - Wait server-side: never poll
screenshotordescribein a loop. Useawait-ui-element, or useawait-screen-idlebefore tapping moving UI. - Dialogs:
describeexposes simulator/emulator system & permission dialogs; prefer answering the app's dialog oversettings-permissions. - Screenshots: keep the default downscaled capture for UI checks; do not pass
scale: 1.0as a tapping/readability aid.
Read references/advanced.md when you need: the full tool table, network-conditions reset, React Native LogBox dismissal, an empty describe tree or a screenshot timeout, await-ui-element/await-screen-idle edge cases, run-sequence gating, paste/secrets rules, or Android reinstall-app notes.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/software-mansion/argent/argent-device-interact">View argent-device-interact on skillZs</a>