IDB Quick Reference
UI Automation Commands
ui describe-all
Usage: idb ui describe-all --json --nested
Output: Complete accessibility tree
Key: Foundation for accessibility auditing
ui tap
Usage: idb ui tap <x> <y>
Output: None (success) or error
ui swipe
Usage: idb ui swipe <x1> <y1> <x2> <y2>
Output: None (success) or error
ui text
Usage: idb ui text "<text>"
Output: None (success) or error
ui describe-point
Usage: idb ui describe-point <x> <y> --json
Output: Element at coordinates
Other Essential Commands
list-targets
Usage: idb list-targets
Output: Available simulators with UDIDs
screenshot
Usage: idb screenshot --udid <udid> output.png
Output: PNG file saved
list-apps
Usage: idb list-apps --udid <udid>
Output: Installed apps with bundle IDs
Common Patterns
# Get accessibility tree
idb ui describe-all --json --nested > tree.json
# Basic interaction
idb ui tap 200 400
idb ui text "username@example.com"
idb ui tap 200 500 # Submit button
Troubleshooting
See troubleshooting.md