xcresult_get_ui_element
Fetches comprehensive details of a UI element by index from a saved UI hierarchy JSON file, with an option to include child elements.
Instructions
Get full details of a specific UI element by index from a previously exported UI hierarchy JSON file
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": {
"hierarchy_json_path": "<hierarchy_json_path>",
"element_index": "<element_index>"
},
"name": "xcresult_get_ui_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hierarchy_json_path | Yes | Absolute path to the UI hierarchy JSON file (the full version saved by xcresult-get-ui-hierarchy) | |
| element_index | Yes | Index of the element to get details for (the "j" value from the slim hierarchy) | |
| include_children | No | Whether to include children in the response. Defaults to false. |