Find HTML elements in a web page (for developers)
nvda_find_htmlFind elements NVDA is reading by CSS selector via browser remote debugging, returning tags, attributes, and text so add-on developers can inspect how apps mark controls NVDA cannot see.
Instructions
For add-on developers: find elements in the web page NVDA is reading (or inside a control) by CSS selector, through the browser's remote debugging, with their tag, attributes and text. Use it to see how an app marks its elements, such as WhatsApp's data-icon attributes, which NVDA cannot see.
The same settings, browser question and cautions apply as for nvda_inspect_html.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Only for a browser started with --remote-debugging-port: that port. Leave out for remote debugging turned on at brave://inspect or chrome://inspect. | |
| within | No | Search only inside this control's element, an id from nvda_find_objects. By default the page NVDA is in. | |
| selector | Yes | A CSS selector, such as '[data-icon="send"]', 'span[data-testid]' or 'button'. | |
| max_results | No | Stop after this many elements. | |
| 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 |