ui_find_element
Search the iOS simulator's accessibility tree to locate UI elements by label, type, or unique ID, filtering with substring or exact match.
Instructions
Searches the accessibility tree and returns elements matching the given criteria
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by element type (e.g. 'Button', 'StaticText', 'Group'). Case-insensitive exact match | |
| udid | No | Udid of target, can also be set with the IDB_UDID env var | |
| search | Yes | Array of search strings. An element matches if ANY string matches against its AXLabel or AXUniqueId | |
| matchMode | No | Match mode for search strings: 'substring' (default) or 'exact' | substring |
| caseSensitive | No | Whether search matching is case-sensitive (default: false) |