tool_find_elements
Find UI elements by role or name substring to get action-ready refs, allowing interaction with non-hit-testable elements. Filter by role, title, or name to avoid tree dumps.
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. 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 | |||