Skip to main content
Glama

视觉OCR

vision_ocr
Read-onlyIdempotent

Extract all visible text from images (titles, body, labels, buttons) and return structured OCR results with text blocks and bounding boxes. Accepts local paths or URLs, with optional auto-scaling for large images.

Instructions

提取图片中的所有文字信息。

返回图片中所有可见的文字内容,包括标题、正文、标签、按钮文字等。

参数:

  • images: 图片路径或URL列表

  • max_dimension: 发送给VLM前自动缩放的最大边长(默认2048,设为0禁用)

返回:JSON格式的OCR结果,包含文字块列表和完整文字。 { "text_blocks": [ { "text": "文字内容", "bbox": { "x_min": 0.1, "y_min": 0.2, "x_max": 0.3, "y_max": 0.4 } } ], "full_text": "所有文字的完整拼接" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imagesYes图片路径或URL列表(http/https开头为URL,否则为本地路径)。至少1张,最多8张。
max_dimensionNo发送给VLM前自动缩放的最大边长(像素)。设为0禁用自动缩放。默认2048。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
full_textNo
text_blocksYes
Behavior4/5

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

Annotations already indicate read-only, open-world, idempotent, and non-destructive behavior. The description adds meaningful context beyond annotations: images are automatically resized before being sent to the VLM, controlled by max_dimension, and the output is a structured JSON with text_blocks and full_text. No contradiction with annotations exists.

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

Conciseness5/5

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

The description is compact and front-loaded with the core purpose. It then presents parameters clearly and gives a concise JSON output example. Every section earns its place with no filler or repetition.

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?

The description covers the required parameter, the optional parameter, preprocessing behavior, and the exact return shape. Combined with the safety profile from annotations and the presence of an output schema, an agent has everything needed to invoke this tool correctly.

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 the parameter notes in the description essentially restate what the schema already provides. No additional nuance or format detail is added for images or max_dimension, so the baseline score of 3 is appropriate.

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?

The description states a clear verb and resource: extract all text from images, and enumerates content types such as titles, body, labels, and button text. This makes it unambiguous as an OCR tool and distinguishes it from sibling tools like vision_describe, vision_qa, and vision_detect.

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

Usage Guidelines3/5

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

The use case is implied—use this when you need all visible text from an image—but it never explicitly contrasts it with vision_describe or vision_qa, nor states when not to use it. The agent must infer the routing from the tool name and general purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/karond-is-me/vision-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server