xcresult_get_ui_element
Extract detailed information about a specific UI element by its index from a JSON file containing a UI hierarchy. Use this tool to analyze UI elements and their properties within Xcode build automation workflows.
Instructions
Get full details of a specific UI element by index from a previously exported UI hierarchy JSON file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
element_index | Yes | Index of the element to get details for (the "j" value from the slim hierarchy) | |
hierarchy_json_path | Yes | Absolute path to the UI hierarchy JSON file (the full version saved by xcresult-get-ui-hierarchy) | |
include_children | No | Whether to include children in the response. Defaults to false. |
Input Schema (JSON Schema)
{
"properties": {
"element_index": {
"description": "Index of the element to get details for (the \"j\" value from the slim hierarchy)",
"type": "number"
},
"hierarchy_json_path": {
"description": "Absolute path to the UI hierarchy JSON file (the full version saved by xcresult-get-ui-hierarchy)",
"type": "string"
},
"include_children": {
"description": "Whether to include children in the response. Defaults to false.",
"type": "boolean"
}
},
"required": [
"hierarchy_json_path",
"element_index"
],
"type": "object"
}