UI automation

Your agent tests its own work.

AXe reads an iOS app's screen and uses it: taps, typing, swipes, screenshots and video, on simulators and on connected iPhones and iPads. Give it to your coding agent and it can check what it has just built. Call it from a script or a CI job and it is the same plain command.

❯ brew install cameroncooke/axe/axe

A real session, shown faster than real time: the agent adds a search field, then tries it.

What it is for

An agent can write the code. It cannot see the app.

Until it can look at the screen and use it, your agent is guessing whether its change worked. AXe is its eyes and hands.

It reads the screen

describe-ui returns every control on screen: a compact row with a ref for each in agent mode, or the full accessibility tree as JSON.

It uses the app

Taps, long presses, typing, swipes, scrolling until something is on screen, pinch, rotate, drag, drawing and the hardware buttons.

It sees what happened

Every agent-mode reply carries the screen as it settled, so the next step starts from what is really there. Screenshots and video are a command away when a picture is needed.

What it can do

Read the screen, drive any input, capture the result

All of it from your terminal, on a simulator or a connected device.

Accessibility reads

The full accessibility tree as JSON, or the element at one point. Tap by ID, label or value, and wait for elements to appear.

Touch and gestures

Taps, long presses, double and two-finger taps, swipes, scroll-until-visible, pinch, rotate, drag to reorder and drawing.

Text and keyboard

Type text from an argument, stdin or a file. Single keys, key sequences and shortcuts such as Cmd+A.

Screenshots and video

PNG screenshots, H.264 MP4 recording, frame streams, and native H.264 from a physical device.

Device settings

Dark mode, text size, contrast, reduce motion, colour filters, VoiceOver, a simulated location and a clean status bar.

Structured output

Put --output json before any command for one typed result. JSON Schemas describe every result.

Buttons and rotation

Home, lock, side button, Siri and Apple Pay. Rotate the iPhone Duo simulator or a physical device.

Batch automation

Run many input steps in one command and one input session, or keep one process open with axe serve.

The command reference has every command and option.

Agent mode

Checked at every step

Add --agent and AXe confirms that a control is still the one your agent saw before it sends any input. If the screen has changed, nothing is sent and the reply says why.

agent session
# Capture the screen as rows with refs
$ axe describe-ui --agent --view navigation --udid $UDID
snapshotID 3FF70D78-…
e7|tap|text-field|First name|
e9|tap|text-field|Last name|
e12|tap|button|Save|

# Fill the form in one checked call
$ axe batch --agent --udid $UDID --steps-json '{…}'
completedSteps 3 · input checked before every step
returns the settled screen with a new snapshot

Refs, not coordinates

The agent acts on a ref from the screen it captured, in navigation, reading or full views.

Web pages too

--web lists a page's links, buttons and fields as refs, in web views, in Safari and in sign-in sheets.

No model, no API key

AXe is the hands. The thinking stays with whichever agent you use.

Any agent

Works with the agent you already use

AXe is a command, so any agent that can run one can use it. A bundled skill teaches yours how.

❯ axe init
Claude CodeCodexCursorVS CodeShell scriptsCI

Claude Code and Codex can also install the skill from the AXe plugin marketplace. See the AI skill guide.

Scripts and CI

The same commands, with no agent at all

Every interaction is one command with an explicit target. That makes AXe as useful in a shell script or a CI job as it is in an agent's hands.

Terminal
# Tap by accessibility label, waiting for it to appear
$ axe tap --label "Sign In" --wait-timeout 5 --udid $UDID

# Scroll until an element is on screen
$ axe gesture scroll-up --until-label "Privacy" --udid $UDID

# One typed JSON result, or a typed error code to branch on
$ axe --output json screenshot --output screen.png --udid $UDID

Selectors that wait

Tap by accessibility ID, label or value, and wait for the element to appear instead of sleeping.

Typed results and errors

--output json gives one typed result per command, or an error code to branch on. Simulators and devices share one set of codes.

Many steps, one process

axe batch runs a list of steps in one input session, and axe serve keeps one process open for a test harness that sends hundreds of commands.

Where it runs

Simulators, the iPhone Duo simulator and real devices

One set of commands and one set of error codes, whatever the target.

iOS Simulator

A tap in 80 milliseconds

iPhone and iPad simulators on Xcode 26 and 27, in every orientation, with input fast enough to feel live.

iPhone Duo Simulator

Two screens, every fold

Read both screens, move the hinge, rotate, and drive whichever display is active.

iPhone Duo guide

iPhone and iPad

Real devices, precise enough to paint

Connected devices take the same commands. Pass the hardware UDID.

Physical devices guide

Performance

Simulator input in milliseconds

Single commands, measured on an iPhone 18 Pro simulator. A warm input connection is reused across commands.

Tap
0.08 s
for one tap
Drag
0.9 s
for a drag
describe-ui
0.3 s
to read the whole screen

Why it holds up

Built to be left alone with your app

Terminal native

Shell commands that fit scripts, CI jobs and agent workflows. No server, no test target and no changes to your app.

Safe by design

AXe never picks a device for you, never replays uncertain input, and blocks input if a touch might still be held.

Typed errors

Simulators and devices share one error vocabulary. Branch on the error's code, not on the text of a message.

Accessibility first

Built on Apple's accessibility APIs. Target elements by ID or label, not just by coordinates.