get_ui_tree
Retrieve the UI accessibility tree of an iOS simulator, listing visible elements with indices for tapping. Use it to identify and interact with UI components.
Instructions
Get the UI accessibility tree showing all visible elements with indices for tapping.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>"
},
"name": "get_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format | tree |
| verbose | No | Include element bounds | |
| device_id | Yes | Simulator UDID | |
| only_visible | No | Only visible elements |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |