Find controls
nvda_find_objectsSearch a window for controls by name or role, nearest the top first, and get IDs for focusing, activating, or inspecting them. Narrow results by searching inside a container.
Instructions
Search the foreground window, or another window, for controls by name and/or role, nearest the top of the window first.
Each result has an id for nvda_focus_object, nvda_activate_object, nvda_inspect_object and other tools. Ids stay valid through later searches, until the control disappears. Faster and more precise than reading the whole tree or tabbing around. To narrow a search, find a container first (role 'list', 'dialog', 'section') and pass its id as within.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | The role as NVDA says it ('button', 'edit', 'list', 'check box') or NVDA's internal name ('editableText'). | |
| window | No | Search this window instead of the foreground one: a handle from nvda_list_windows. It may be in the background or on another virtual desktop. | |
| within | No | Only search inside this control, an id from nvda_find_objects, such as a list, dialog or region. Use it when a search of a large web page stops early. | |
| max_results | No | Stop after this many matches. | |
| name_contains | No | Part of the control's name, ignoring case, such as 'Chat' or 'Send'. | |
| response_format | No | 'markdown' (default) is easier to read; 'json' keeps every field for further processing. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |