Skip to main content
Glama

ocr_image

Extract all text from images while preserving original layout. Perfect for digitizing documents, receipts, and screenshots.

Instructions

提取图片中的所有文字内容(OCR),保持原始排版。

与 recognize_image 的区别:本工具只提取文字,不描述图像本身, 适合截图取字、票据/单据录入、文档数字化等场景。

Args: image: 图片来源,支持本地路径 / http(s) URL / base64 字符串。

Returns: 图片中识别到的纯文本内容。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

描述说明了行为(提取文字、保持排版),但未提及权限、副作用或结果格式等,在没有注解的情况下基本充分但不够详尽。

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?

描述简洁,先总述用途,再区分同族工具,最后说明参数和返回,无冗余内容。

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?

针对单一参数和简单返回值,描述充分解释了输入输出,无需额外补充。

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?

解释了image参数支持的类型(本地路径、URL、base64),超越了模式中仅字符串类型的定义,覆盖了参数。

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?

明确说明了OCR提取文字功能,并与recognize_image区分,使用了具体动词+资源(提取文字),场景清晰。

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

Usage Guidelines4/5

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

通过对比recognize_image和列举适用场景(截图取字、票据录入等)提供了使用指引,但未明确说明何时不应使用。

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/kobexi26/mcp-vision'

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