Read text
nvda_get_textReads the full text of the focused document, web page, or edit field plus the caret line; optionally returns only lines containing specified text without moving NVDA's cursor.
Instructions
Read the full text of a document, web page or edit field, plus the line the caret is on.
Use this instead of nvda_get_object_tree when you need the content rather than the controls. With contains, it searches the page without moving NVDA's cursor; nvda_find_in_page moves it. Text over 20,000 characters is cut off and the result says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | 'focus' (default) reads the focused document or edit field, including web pages in browse mode; 'navigator' reads the navigator object; 'review' returns the line at NVDA's review cursor. | focus |
| contains | No | Only return the lines containing this text (ignoring case), with their line numbers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |