Axisdream
Written and Published byAxisdream·

Giving an Agent Hands on a Real iPhone

An agent reading a phone screen and issuing a tap at coordinates

Key Takeaways

  • •Phone control means reading a screen, tapping, waiting and checking. Native apps use custom controls and gestures, so the interface is harder than a web page.
  • •Examines why a phone is harder than a web page, analyzing the structural bottlenecks and trade-offs in real-world deployments.
  • •Provides engineering benchmarks and verification criteria for perception, action, verification.

PhoneUse Local is an open project, published as an experimental preview, for controlling a USB-connected iPhone from a Mac through 4 interfaces: a local web UI, a live screen preview, a REST API and an MCP server. Related projects such as Pinky cover both iPhone and Android with a gateway that enforces approvals outside the model. Both require Apple signing on a Mac the user controls, which bounds the arrangement to devices the user owns.

Together they mark a category that has moved from demonstration to tooling. An agent operating a phone is a different engineering problem from an agent operating a browser, and the differences are what make it interesting.

Why a phone is harder than a web page

A web page exposes a document object model. Elements have roles, labels and identifiers, and a browser automation tool can find a button by its accessible name and click it.

A native application draws its own interface. Controls are rendered pixels with hit regions, and the automation layer sees either a screenshot or a platform accessibility tree, depending on what the framework exposes.

Custom drawing makes the accessibility tree unreliable. A canvas-based view with drawn buttons reports as one element or none, and the agent's only recourse is to look at the image.

Gestures compound it. A long press, a swipe with velocity, a pinch and a drag each have duration and path, and a single wrong parameter turns an intended scroll into a tap.

Perception, action, verification

Any phone agent runs three loops.

Perception captures a screenshot and, where available, the accessibility hierarchy. The screenshot gives appearance and the hierarchy gives labels, and neither alone is sufficient, because a button may be labelled in one and not the other.

Action issues a tap, a text entry, a swipe or a hardware button press, targeting either an element from the hierarchy or coordinates from the image.

Verification waits for the interface to settle and confirms the action had the intended effect. This is the step that separates a working agent from a demo, and it is the hardest to get right.

Why waiting is a technical problem

A phone does not respond instantly. A tap launches a transition that takes a few hundred milliseconds, during which the screen shows animation rather than content. Screenshot too early and the agent sees the previous screen and concludes the tap failed.

Naive solutions are unstable. A fixed sleep is either too short and produces flaky behaviour or too long and multiplies across a task until a five-minute job takes an hour.

Better approaches detect settling. Comparing consecutive screenshots until the image stops changing works for transitions. Waiting for a specific expected element to appear works when the agent knows what to expect. Both require the agent to reason about what it is waiting for rather than to sleep and hope.

Network-dependent screens add a further wrinkle. A list that loads from a server may show a spinner for an unpredictable time, and the correct behaviour is to wait for the spinner to disappear rather than for a fixed interval.

The WebDriverAgent foundation

PhoneUse documents an experimental preview built on WebDriverAgent, which is Apple's approach to application automation for testing. It runs a server on the device that accepts commands and reports state.

That foundation explains both the capability and the constraint. WebDriverAgent is designed for testing an application under development, not for driving arbitrary production apps, and its behaviour depends on the app being debuggable in the way the framework expects.

The setup requires the user's Mac, the physical iPhone, an Apple signing configuration and model access. The signing step is not incidental. It is what authorises the agent's tooling to run on the device, and it is also what bounds the arrangement to devices the user controls.

The limits that matter

Not every app can be automated. Applications that detect automation, that use custom rendering without accessibility labels, or that require biometric confirmation will resist the approach, and the project says so.

Verification is imperfect. An agent that taps a button and sees a screen change has evidence that something happened and not necessarily that the intended thing happened. Confirming a purchase went through requires reading the confirmation, and confirming a message was sent requires finding it in the conversation.

Important results must be checked on the device. That instruction from the project is the honest position, and it means the agent is a first pass rather than an authority.

Where human approval belongs

Payments, messages, account changes and deletions are the four categories where a mistake is expensive.

Pinky's design is instructive because the approval is enforced by the gateway rather than requested in the prompt. The model cannot grant itself permission because the permission is checked in the component that issues the command.

The distinction matters most for phone agents, because a phone is a payment instrument and a messaging device at the same time. An agent that can tap through a checkout and confirm a purchase has authority over money, and an agent that can type into a message field has authority over the user's relationships.

An approval gate that shows the agent's intended action, the target application and the payload before release lets a person catch the failure that matters. The payload is the part agents get wrong, because a correctly identified field filled with the wrong text looks identical in the screenshot.

What a real deployment needs

Four things beyond the prototype.

A device that is dedicated to the agent, so a mis-tap does not affect the user's own messages. A network configuration that the agent's traffic can be observed in, so failures are diagnosable. An audit log of every action with a screenshot before and after, so a disputed outcome can be reviewed. And a task-level success criterion, so the agent's claim of completion can be checked against evidence rather than trusted.

The last is the one that determines whether the system is usable in a production workflow. An agent that completes tasks and reports success is only useful if the report is reliable, and reliability on a phone means the agent showed what it saw rather than declared what it did.

Related Dispatches