describe_ui
Retrieve the accessibility tree of the foreground app to identify UI elements, their labels, and tap coordinates for automation and testing.
Instructions
Accessibility tree of the foreground app (plus any system alert), one element per line: Type "label" #identifier value=… @(centerX,centerY) WxH. Coordinates are in points and can be passed to tap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| format | No | json returns the raw tree | |
| bundleId | No | Inspect this app instead of the detected foreground app | |
| includeOffscreen | No |