iPhone-use
Browse docs
On this page

Your first iPhone task

Navigate a real app, read the evidence and close the session.

Before you start

Complete CLI installation, the Codex or Claude Code plugin installation, and device setup. Start with standard mode, which does not require Runner signing. Use a new, authenticated local client session with command execution and image reading enabled. A hosted chat without local Mac tools cannot operate the device.

Send the task

Invoke $iphone-use:iphone-use in Codex or /iphone-use:iphone-use in Claude Code, then send the task below. In another supported local client, ask it to use its installed iphone-use skill:

Use standard mode on my USB-connected iPhone. Open Settings, navigate to General and read a fresh screenshot to confirm the page. Do not change any settings. If General is already open, return and enter it again. Disconnect the session you create when finished; preserve an existing borrowed session.

Keep the phone unlocked. If several phones are connected, state which to use. Review privacy and data flow before using personal apps.

What completion looks like

  1. The agent checks the CLI and Xcode, discovers the device, connects and keeps the returned session ID.
  2. It discovers Settings, opens the app and reads the actual PNG with its image tool.
  3. It navigates to General using coordinates from the current observation (or Runner element references). If General is already open, it goes back and enters again.
  4. It reads the new screenshot, confirms the General page and disconnects the session it created, preserving any borrowed session.

A command success, a screenshot filename or a successful tap alone does not complete this task. No settings need to change. UI labels may differ with the phone’s language.

Watch the task

The agent can enable the local preview once and reuse its browser tab. Preview is for watching; the agent still needs to read actual observation PNGs. After disconnect the viewer clears, but its URL remains a private credential for future explicitly enabled previews. This sample disconnects only the session created for the task; a borrowed session is preserved.

If the task stops

A background command job ID is different from the device session ID. Collect the original command’s completed output instead of launching it again. If an action returns unknown, read its attached observation or acquire one before deciding what to do next. Do not repeat the action or restart the entire task to obtain a cleaner receipt.

Ask the agent to disconnect a task-created session if possible, preserve a borrowed session and report the command, error and unverified result. Continue with troubleshooting.