Inspect a control for add-on development
nvda_inspect_objectInspect a focused or navigator control’s accessibility properties, containers, children, and table/list row counts to build stable NVDA overlay classes.
Instructions
Everything an add-on needs to recognize a control: its API and NVDA class, its IAccessible2 attributes (HTML tag, id, class, ARIA role, where the name came from) or UI Automation properties, the containers above it, its first children, and for tables and lists how many rows exist now compared with how many the application reports (virtual lists).
It ends with the most stable conditions for chooseNVDAObjectOverlayClasses, what to avoid (generated class names, names made from changing content), and example code. Works on controls in background windows too (nvda_find_objects with window).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Instead, a control from nvda_find_objects. | |
| target | No | 'focus' (default) or the 'navigator' object. | focus |
| 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 |