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.
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
It sees what happened
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.
# 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 snapshotRefs, not coordinates
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
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.
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.
# 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
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 and iPad
Real devices, precise enough to paint
Connected devices take the same commands. Pass the hardware UDID.
Performance
Simulator input in milliseconds
Single commands, measured on an iPhone 18 Pro simulator. A warm input connection is reused across commands.
Why it holds up
Built to be left alone with your app
Terminal native
Safe by design
Typed errors
Accessibility first
The rest of the toolbox
