find_elements
Find interactive desktop GUI elements by role and exact name, returning handles to pass to click or type actions. Narrows searches by role and name to avoid timeouts on large window trees.
Instructions
Find interactive elements by role and/or name. Returns element handles; pass the 'id' field to click/type_text/etc. Common roles: button, combo box, text, entry, check box, menu item. name is an exact match, not a substring ("Load Listfile…" with its ellipsis, "Export Folder" not "Export"); use get_tree to read names.
On a window with a huge tree a search gives up after about 10 s and returns {"error": "searched N elements ..."}; narrow it by role and name.
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": {
"window_id": "<window_id>"
},
"name": "find_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| role | No | ||
| window_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |