tool_find_elements
Find UI elements by role, name substring, or automation ID and return refs you can act on, so you can reach controls that pixel hit-testing misses.
Instructions
Find UI elements by role and/or name substring and return refs that can be acted on with element_action. This is how you reach an element that cannot be hit-tested — the point of naming it is that you no longer need a pixel. role is the lowercase role from skyshot (button, edit, document, list_item, ...). At least one filter is required: an unfiltered call would be a tree dump, so use skyshot for that. The result reports minimized — a minimized window does not always expose its full tree, so a zero here is not proof that nothing matches. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | ||
| role | No | ||
| title | No | ||
| max_results | No | ||
| automation_id | No | ||
| name_contains | No | ||
| include_offscreen | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||