Skip to main content
Glama
nvda-mcp server

nvda-mcp server

by InfiArtt

Recognize text on the screen (OCR)

nvda_recognize_text
Read-onlyIdempotent

Read 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

NameRequiredDescriptionDefault
idNoA control from nvda_find_objects, instead of target.
targetNoWithout id: the 'foreground' window (default), the 'focus' or the 'navigator' object.foreground
response_formatNo'markdown' (default) is easier to read; 'json' keeps every field for further processing.markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/non-destructive annotations, it discloses real operational traits: the window should be in front, it works with Screen Curtain on, it uses NVDA's configured OCR language, and every use is written to the action log. The only missing behavioral note is latency, since OCR on a full screen is typically slow, but the disclosure otherwise exceeds the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then usage conditions, then caveats — a sensible ordering with no filler. It is somewhat dense and runs several clauses together, but each sentence carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, preconditions (window in front), fallback ordering, accuracy limits, language source, and side effects (action log). With an output schema present and a fully documented parameter set, nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each parameter already documents itself, so the baseline applies. The description adds no guidance on choosing between 'id' and 'target' or on when to pick 'json' over 'markdown', leaving that entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read the text shown on the screen with Windows' text recognition (OCR)') plus the shape of the result ('line by line with where each line is') and anchors it to a known behavior ('the way NVDA+R does'). It is unmistakably distinct from nvda_get_text and nvda_get_object_tree.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit triggers ('NVDA says only "pane", "graphic" or "button", or nvda_get_object_tree finds nothing inside a window') and an explicit ordering rule ('Prefer nvda_get_text and the tree first'), naming the alternatives to try first. It even states the trade-off that justifies the ordering: recognition can misread words and knows nothing about controls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.