Recognize text on the screen (OCR)
nvda_recognize_textRead on-screen text with Windows OCR when NVDA cannot access it, returning each recognized line with its screen position. Use it for panes, graphics, or windows lacking readable text.
Instructions
Read the text shown on the screen with Windows' text recognition (OCR), the way NVDA+R does, line by line with where each line is.
Use it when an application shows text that NVDA cannot read: NVDA says only "pane", "graphic" or "button", or nvda_get_object_tree finds nothing inside a window. Prefer nvda_get_text and the tree first, since recognition can misread words and knows nothing about controls. It reads what is on the screen, so the window should be in front, and it works with NVDA's Screen Curtain on. It uses the OCR language chosen in NVDA's Windows OCR settings. Every use is written to the action log.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nvda_recognize_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A control from nvda_find_objects, instead of target. | |
| target | No | Without id: the 'foreground' window (default), the 'focus' or the 'navigator' object. | foreground |
| 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 |