argent-device-interact
Interact with an iOS simulator, Android emulator, or Chromium (CDP) app using argent MCP tools.
Skill by gmarcospires
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/gmarcospires-argent-device-interact
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/argent-device-interact
What's inside
- Skill name
argent-device-interact- Description
- Interact with an iOS simulator, Android emulator, or Chromium (CDP) app using argent MCP tools. Use when tapping UI elements, performing gestures, scrolling/swiping, typing text, pressing hardware buttons, launching apps, opening URLs, taking screenshots, waiting for an element to appear or disappear, or checking visible app state after interactions.
- License
- MIT
- Instructions
- 392 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- gesture-examples.md · references/
SKILL.md (first lines)
## Unified tool surface
All interaction tools below accept a `udid` parameter and auto-dispatch iOS vs Android based on its shape (UUID → iOS simulator, `chromium-cdp-<port>` → Chromium (CDP) app, anything else → Android adb serial). You use the same tool names on every platform.
**Chromium (CDP) app** = any Chromium runtime exposing a Chrome DevTools Protocol endpoint: an Electron app (boot it with `boot-device` + `electronAppPath`), or any Chromium-family browser (Chrome/Brave/Edge) launched with `--remote-debugging-port`. The latter is auto-discovered by `list-devices` on port `9222` plus anything in `ARGENT_CHROMIUM_PORTS`. The same describe/tap/swipe/keyboard/screenshot surface drives all of them.
**Multi-tab / windows (Chromium only):** a Chromium device may have several tabs / BrowserWindows. Use `chromium-tabs` to `list` them (stable ids `t1`, `t2`, …, optional labels), open a `new` one, `select` which is active, or `close` one. Every other tool (`describe`, `gesture-tap`, `screenshot`, `debugger-evaluate`, `open-url`, …) acts on the **active** tab, so `chromium-tabs action=select` before driving a different tab. Note: a cross-process navigation (some redirects) can swap a tab's underlying CDP target — re-run `chromium-tabs action=list` to pick it up under a fresh id.
**Cookies & storage (Chromium only):** `chromium-cookies` reads/writes cookies via the Network domain (so HttpOnly cookies are visible): `action=get` (optionally scoped by `url`), `set` (`name`, `value`, + `url`/`domain`, optional `secure`/`httpOnly`/`sameSite`/`expires`), `delete` (`name`), `clear` (all). `chromium-storage` reads/writes Web Storage for the active page: `store=local|session`, `action=get` (one `key` or all entries), `set`, `remove`, `clear`. Both are per-origin / active-tab. Handy for seeding auth before a flow or asserting app state after one.
> **TV targets (Apple TV / Android TV) are not covered by this skill.** A TV target is **focus-driven, not touch-driven** — the `gesture-*` tools are the wrong tools for it. This applies to both Apple TV simulators (UUID-shaped, identical to iOS) and Android TV / leanback devices (serial-shaped, identical to a phone emulator). If `list-devices` tags your target `runtimeKind: "tv"`, stop and use the `argent-tv-interact` skill: `describe` to read focus, `tv-remote` for remote / D-pad presses, and `keyboard` to type.
For platform-specific caveats (Metro `adb reverse`, locked-screen describe errors, etc.), see § 9 Platform-specific notes at the bottom.
## 1. Before You Start
If you delegate simulator tasks to sub-agents, make sure they have MCP permissions.
Use `list-devices` to get a target id. Results are tagged with `platform` (`ios`, `android`, or `chromium`); booted/ready devices come first. Pick the first entry that matches the platform you need — if none are ready, call `boot-device` with `udid` (iOS), `avdName` (Android), or `electronAppPath` (boots an Electron app as a `chromium` device). A Chromium browser already running with a CDP port shows up directly — no `boot-device` needed. See `argent-ios-simulator-setup` / `argent-android-emulator-setup` for full setup flow.
**Load tool schemas before first use.** Gesture tools (`gesture-tap`, `gesture-swipe`, `gesture-pinch`, `gesture-rotate`, `gesture-custom`) may be deferred — their parameter schemas are not loaded until fetched. Always use ToolSearch to load the schemas of all gesture tools you plan to use **before** calling any of them. If you skip this step, parameters may be coerced to strings instead of numbers, causing validation errors.
## 2. Best Practices
1. **Always refer to tapping_rule** from your argent.md rule before tapping.
2. Before performing interactions, consider whether they can be **dispatched sequentially** - more on that in `run-sequence`.
3. **Use `gesture-swipe` for lists/scrolling**, not `gesture-custom`, unless you need non-linear movement. On Chromium use `gesture-scroll` instead — `gesture-swipe` is touch-only. Consider whether you need multiple swipes, if yes - use `run-sequence`.
4. **Tap a text field before typing**, then use `keyboard` to enter text.
5. **Coordinates are normalized** — always 0.0–1.0, not pixels.
6. **For app navigation, prefer `describe` first.** It works on any screen without app restart. Do not navigate from screenshots on regular in-app screens unless `describe` failed to expose a reliable target. Use `native-describe-screen` only when you need app-scoped UIKit properties.
## 3. Opening Apps
**Never navigate to an app by tapping home-screen icons.** Use `launch-app` or `open-url` — they are instant and reliable.
### launch-app — by bundle ID
```json
{ "udid": "<UDID>", "bundleId": "com.apple.MobileSMS" }
```
Common IDs: `com.apple.MobileSMS` (Messages), `com.apple.mobilesafari` (Safari), `com.apple.Preferences` (Settings), `com.apple.Maps`, `com.apple.Photos`, `com.apple.mobilemail`, `com.apple.mobilenotes`, `com.apple.MobileAddressBook` (Contacts)
### open-url — by URL scheme
```json
{ "udid": "<UDID>", "url": "messages://" }
```
Common schemes: `messages://`, `settings://`, `maps://?q=<query>`, `tel://<number>`, `mailto:<address>`, `https://...` (Safari)
## 4. Choosing the Right Tool
| Action | Tool | Notes |
| ----------------- | ------------------- | ----------------------------------------------------------------- |
| Multiple actions | `run-sequence` | Batch steps in one call (no intermediate screenshots) |
| Open an app | `launch-app` | **Always — never tap home-screen icons** |
| Restart an app | `restart-app` | Terminate and relaunch by bundle ID |
| Open URL/scheme | `open-url` | Web pages, deep links, URL schemes |
| Single tap | `gesture-tap` | Buttons, links, checkboxes |
| Scroll/swipe | `gesture-swipe` | Straight-line scroll or swipe |
| Scroll (Chromium) | `gesture-scroll` | Wheel-based; deltas are window fractions, positive deltaY = down |
| Drag (Chromium) | `gesture-drag` | Sliders, drag-and-drop, text selection |
| Long press | `gesture-custom` | Context menus, drag start |
| Drag & drop | `gesture-custom` | Complex drag interactions |
| Pinch/zoom | `gesture-pinch` | Two-finger pinch with auto-interpolation |
| Rotation | `gesture-rotate` | Two-finger rotation with auto-interpolation |
| Custom gesture | `gesture-custom` | Arbitrary touch sequences, optional interpolation |
| Hardware key | `button` | Home, back, power, volume, appSwitch, actionButton |
| Type text | `keyboard` | Every platform. Text or one named key per call, never both |
| Paste text | `paste` | Only where a user would paste (OTP code, long link). Sim/emu only |
| Rotate device | `rotate` | Orientation changes |
| Shake device | `shake` | Shake handlers (sim/emu only), Undo-typing prompt, RN dev menu |
| Wait for UI | `await-ui-element` | Block until an element is visible/hidden/exists/contains text |
| Wait for idle | `await-screen-idle` | Block until a non-empty screen tree stops changing |
## 5. Finding Tap Targets
IMPORTANT. When moved to a different screen after an action or do not know the coordinates of component, **always** perform proper discovery first.
| App type | Discovery tool | What it returns |
| --------------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Target app discovery | `describe` | Accessibility element tree for the current device screen (iOS AX-service, Android uiautomator, or Chromium DOM walker) with normalized frame coordinates. Works on any app, system dialogs, and Home screen — no app restart or `bundleId` required |
| React Native | `debugger-component-tree` | React component tree with names, text, testID, and (tap: x,y) |
| App-scoped native | `native-describe-screen` | Low-level app-scoped accessibility elements with normalized and raw coordinates; requires `bundleId` |
| Permission / system modal overlay | `describe` | `describe` detects system dialogs automatically and returns dialog buttons with tap coordinates. Fall back to `screenshot` only if `describe` does not expose the controls |
| Final visual fallback | `screenshot` | Use only when discovery tools cannot inspect the current UI reliably. Do not derive routine in-app navigation targets from screenshots |
Point follow-up native diagnostics after you already have a candidate point:
- `native-user-interactable-view-at-point`: deepest native view that would receive touch at a known raw iOS point; requires `bundleId`
- `native-view-at-point`: deepest visible native view at a known raw iOS point; requires `bundleId`
### If `describe` Fails
Read the exact error and choose the action that matches it:
- Error mentions `ax-service` not available or daemon startup failure:
the ax-service daemon could not start. Check that the simulator is booted. Use `screenshot` as a temporary fallback, or use `native-describe-screen` with an explicit `bundleId` if the app has native devtools injected.
- `describe` returns an empty element list:
the screen may be blank, loading, or showing content without accessibility labels. Use `screenshot` to see what is visible, then retry after the content has loaded.
- `describe` succeeds but is not detailed enough for a React Native app:
use `debugger-component-tree` next.
- You need app-scoped inspection with full UIKit properties (`accessibilityIdentifier`, `viewClassName`):
use `native-describe-screen` with an explicit `bundleId`. This requires native devtools (dylib) injection.
- You already have a candidate point and want to confirm what would actually receive touch:
use `native-user-interactable-view-at-point`. Use `native-view-at-point` when you want the visually deepest view instead of the hit-test target.
## 6. Tool Usage
### gesture-tap — Single tap at a point
```json
{ "udid": "<UDID>", "x": 0.5, "y": 0.5 }
```
Coordinates: `0.0` = left/top, `1.0` = right/bottom.
Before tapping near the bottom of the screen in React Native apps, check that "Open Debugger to View Warnings" banners are not visible — tapping them breaks the debugger connection. Close them with the X icon if present.From gmarcospires/tento-truco, MIT.
More from gmarcospires/tento-truco
- 0.529score
argent-react-native-optimization
gmarcospires
Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-create-flow
gmarcospires
Create, record, edit, replay, or repair reusable Argent flow YAML files.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-metro-debugger
gmarcospires
Debug a JS runtime via CDP using argent debugger tools.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-react-native-profiler
gmarcospires
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-react-native-app-workflow
gmarcospires
Step-by-step workflows for developing or debugging React Native apps on iOS simulator or Android emulator.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-screen-recording
gmarcospires
Record a video of an iOS simulator or Android emulator/device screen using argent MCP tools.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-screenshot-diff
gmarcospires
Compare saved or live app screenshots with the argent screenshot-diff tool.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-settings-permissions
gmarcospires
Grant, deny, or reset an app's runtime permissions (camera, microphone, photos, contacts, notifications, calendar, location, location-always, media-library…
SkillBFreshness: BClaude Code +9 - 0.524score
argent-tv-interact
gmarcospires
Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega).
SkillBFreshness: BClaude Code +9 - 0.524score
argent-test-ui-flow
gmarcospires
Autonomously test an app UI (iOS or Android) by running interact-screenshot-verify loops using argent MCP tools.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-lens
gmarcospires
Propose multiple visual design variants for on-screen elements and let the human pick in the Argent Lens window.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-native-profiler
gmarcospires
Native profiling for CPU hotspots, UI hangs, memory issues.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 30, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/gmarcospires/tento-truco
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from gmarcospires
- 0.529score
argent-react-native-profiler
gmarcospires
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-react-native-optimization
gmarcospires
Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-create-flow
gmarcospires
Create, record, edit, replay, or repair reusable Argent flow YAML files.
SkillBFreshness: BClaude Code +9 - 0.529score
argent-metro-debugger
gmarcospires
Debug a JS runtime via CDP using argent debugger tools.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-native-profiler
gmarcospires
Native profiling for CPU hotspots, UI hangs, memory issues.
SkillBFreshness: BClaude Code +9 - 0.524score
argent-android-emulator-setup
gmarcospires
Set up and connect to an Android emulator using argent MCP tools.
SkillBFreshness: BClaude Code +9
Cite this page
argent-device-interact skill. Agent Mart. https://agentmart.dev/skills/gmarcospires-argent-device-interact (last updated 2026-10-24)