Find an element on screen
find_ui_elementsLocate UI controls or text on a Mac screen by name, role, or both, so you can target the right button, field, or menu item before acting on it.
Instructions
Find the elements on screen with a name, a role, or both: the 'Send' button, the search field. Those named exactly so come first ('Save' before "Don't Save"), then the others, top to bottom. Text is found too, not only controls. Give a name, a role, or both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_ui_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app, by name, bundle identifier or path. The app in front by default. | |
| name | No | A part of its name, label, text, placeholder or tooltip, in any case. | |
| role | No | What it is: 'button', 'text field', 'link', 'check box', 'menu item', 'search field'... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app's name. | |
| note | No | Something to know about the list, when there is. | |
| elements | Yes | Top to bottom, as a person reads the window. |