Find elements
ax_findSearch a window’s accessibility tree by role, title, or value to locate UI elements and return their refs plus global desktop bounds for targeted automation.
Instructions
Query a window's AX tree by role/title/value; returns element records with refs and global desktop bounds.
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": {
"target": "<target>"
},
"name": "ax_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role, e.g. button, textfield. | |
| limit | No | Max results. | |
| title | No | Label. | |
| value | No | Value. | |
| target | Yes | Window id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard. |