Skip to main content
Glama

Extract Text From Screenshot

extract_text_from_screenshot
Read-only

Extract text from screenshots using OCR. Recognizes code, terminal output, logs, documentation, and UI copy from images.

Instructions

Extract and recognize text from screenshots, including code, terminal output, logs, documentation, and UI copy.

Use when the user needs faithful OCR or text reconstruction from an image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesInstructions for text extraction and formatting.
image_detailNoOptional Codex Responses input_image detail. Defaults to CODEX_VISION_IMAGE_DETAIL or high.
image_sourceYesLocal file path, remote URL, or data:image URL to the screenshot.
programming_languageNoOptional programming language hint if the screenshot contains code.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
successYes
metadataNo
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. Description adds 'faithful OCR' but no additional behavioral context beyond what annotations provide. No contradiction.

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?

Two concise sentences with no wasted words. Front-loaded with action and examples, followed by usage context. Excellent structure.

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?

With full parameter descriptions, output schema, and annotations, the description is complete. It explains tool purpose and usage, and the sibling tools cover other image-related tasks.

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?

All parameters have schema descriptions (100% coverage). Description itself adds no extra parameter meaning; examples are given but not linked to specific parameters. Baseline 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?

Description explicitly states the tool extracts text from screenshots, listing specific use cases like code, terminal output, logs, etc. It clearly distinguishes from sibling tools that analyze images or data visualizations.

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?

Includes explicit guidance when to use: 'when the user needs faithful OCR or text reconstruction from an image.' No explicit when-not, but sibling names imply other tools for different tasks, so it's clear.

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

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