Skip to content
Skillpedia
Mobile apps5.2k · #15026

agent-device

What it does

It runs the agent-device command-line tool to open an app, read its screen, and tap, type, or scroll through it. It is for developers and testers who want an AI to check mobile app behavior.

When to use it

  • ✓When you want your agent to open an app and walk through a screen on a phone or simulator.
  • ✓When you want to check a mobile app change by using it on a device.
  • ✓When you want screenshots or details of a bug in a mobile app.

Skill link

https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Open my app in the iOS simulator, log in with the test account, and tell me whether the settings screen loads.”

5 new skills a week. 1 minute to read.

How it works

The agent opens the app, reads its screen as a list of targets, and acts on them. After each step it reads the change and checks the result you asked about.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

agent-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, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running.

Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.

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.

To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.

FAQ

Does the agent need a tool installed first?

Yes. You install the agent-device command-line tool yourself before the agent uses it.

Does it work on TV apps too?

The skill covers TV remotes and apps on Android TV, Fire TV, and Amazon Vega OS TV apps.

Does it shut down the simulator afterwards?

If the session started the simulator or emulator, it shuts it down at the end, unless you ask to keep it running.

Details

Original description by the author

Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.

repo: callstack/agent-device

Popularity

GitHub stars
5.2k
Ranking position
#15026
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills