# Build and run, using session defaults
❯ xcodebuildmcp simulator build-and-run
✓ app running on iPhone 17 Pro
# Snapshot the UI as element refs
❯ xcodebuildmcp ui-automation snapshot-ui
✓ e8 search field · e12 button “Continue”
❯ xcodebuildmcp ui-automation type-text --element-ref e8 --text "London"
✓ typed into e8
❯ xcodebuildmcp ui-automation tap --element-ref e12
✓ tapped e12 · fresh snapshot captured
# Find a booted simulator
❯ axe list-simulators
✓ iPhone 17 Pro (Booted)
# Inspect the current UI
❯ axe describe-ui --udid "$UDID"
✓ accessibility tree captured
# Interact with the simulator
❯ axe tap --label "Continue" --udid "$UDID"
✓ tapped “Continue”
❯ axe screenshot --output ./screen.png --udid "$UDID"
✓ saved ./screen.png
Illustrative output · commands from the official docs