extract_text_from_screenshot
Extract text from screenshots with OCR, preserving code indentation and formatting. Supports terminal output, documents, and general text extraction.
Instructions
使用 OCR 从截图中提取和识别文字。专门用于代码、终端输出、文档和通用文本提取。
仅在用户需要以下操作时使用:
从截图提取代码(保持正确缩进与格式)
提取终端输出和日志
提取文档和文本内容
不要用于:UI 转 code、错误诊断、图表分析。
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": {
"image_source": "<image_source>",
"prompt": "<prompt>"
},
"name": "extract_text_from_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | 详细描述要分析/生成的内容 | |
| image_source | Yes | 本地文件路径或图片 URL | |
| programming_language | No | 可选:截图中的编程语言提示,提高准确性 |