Find UI elements
ui_findSearch app windows for UI elements by text and/or role, returning matching IDs, roles, labels, and values for automation.
Instructions
Search an app's windows for elements by text and/or role, returning their ids, roles, labels and values.
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": {
"app": "<app>"
},
"name": "ui_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| max | No | ||
| role | No | Accessibility role without the AX prefix, e.g. Button, TextField, CheckBox, PopUpButton, MenuButton, Slider, Row, StaticText | |
| text | No | Text in the element's title, description or value (case-insensitive) | |
| exact | No | Require the whole text to match | |
| index | No | Which match to use when several match (0 = first) | |
| within | No | Only search inside this element id from ui_snapshot |