describe_ui
Inspect the foreground iOS app's accessibility tree to list UI elements, labels, identifiers, and tap coordinates for automating tests and interactions.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "describe_ui"
}
}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 | Include elements outside the screen, marked [offscreen] (default false) |