Skip to main content
Glama

OpenFactory

desktop_read_region

Run a real vision-language OCR model on a region of the VM's display and return all its text.

Returns TEXT ONLY — there is no image in this response. Call desktop_screenshot when you need to see the pixels.

UNLIKE desktop_screenshot (which returns OmniParser's filtered UI-element list — only button and icon labels), this runs a transformer-based OCR model on the raw pixels and returns ALL the text. Use this when you need to: • Read terminal output • Read browser page body content (articles, docs, error messages) • Read dialog body text • Verify exact text that OmniParser's UI filter drops

TWO MODES: • Default (include_coordinates=False): Nanonets OCR 2 returns structured markdown with preserved tables, code blocks, headings, and lists. Optimized for READING. • Opt-in (include_coordinates=True): EasyOCR returns per-line text + pixel centers. Optimized for CLICKING on something you read.

Region defaults to the full screen. Pass x/y/width/height to OCR a sub-region. Coordinates in lines[] responses are always in full-screen pixel space, so the center values can be fed directly to a desktop_interact click action.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vm_name": "<vm_name>"
    },
    "name": "desktop_read_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoTop-left X of region in pixels (default: 0)
yNoTop-left Y of region in pixels (default: 0)
widthNoRegion width in pixels. -1 (default) means 'to the right edge'.
heightNoRegion height in pixels. -1 (default) means 'to the bottom edge'.
api_keyNoMCP API key
vm_nameYesVM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM.
include_perfNoInclude per-stage timing metrics in the response.
session_tokenNoSession token
include_coordinatesNoIf False (default): use Nanonets OCR 2 and return STRUCTURED MARKDOWN of everything on screen — best for reading terminal output, articles, logs, dialog body text. Markdown preserves tables, code blocks, headings. If True: use EasyOCR and return per-line {text, center, confidence} with screen-space pixel coordinates. Use this mode when you need to CLICK on something you just read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses that the response is TEXT ONLY with no image, names the underlying models per mode, and specifies that lines[] centers are in full-screen pixel space so they can be fed to desktop_interact. It stops short of covering failure behavior for blank/ambiguous regions, inference cost or latency, or authentication expectations for api_key/session_token.

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-loads the core capability and the no-image warning, then uses labeled TWO MODES and bulleted use cases for scanability. It runs longer than necessary and restates the include_coordinates mode split that the schema already documents, which is mild redundancy rather than filler.

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

Completeness4/5

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

With no output schema, the description must explain return values and does: structured markdown preserving tables/code blocks versus lines[] with text, center, and confidence. The main residual gap is what an agent should expect when a region contains no text or the OCR misreads — no guidance on verification or retry.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still earns more by explaining that the region defaults to the full screen and by clarifying the semantic intent of include_coordinates (Nanonets markdown for reading vs EasyOCR per-line text + centers for clicking), plus the non-obvious guarantee that coordinates stay in full-screen space even when a sub-region is OCR'd.

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 ('Run a real vision-language OCR model on a region of the VM's display and return all its text') and immediately distinguishes itself from the closest sibling by contrasting its raw-pixel OCR with desktop_screenshot's OmniParser filtered UI-element list.

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 an explicit when-to-use list (terminal output, browser body content, dialog body text, verifying text OmniParser drops) and names the alternative plus its selection condition ('Call desktop_screenshot when you need to see the pixels'). It also routes between its own two modes with a clear rule: reading vs clicking.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.