extract_text_from_image
Extract all text from images via OCR, preserving line breaks and indentation. Use for screenshots of logs, code, error messages, or scanned documents.
Instructions
纯 OCR:逐字提取图片中的全部文字,保留换行缩进,不做解读。
最适合日志、终端、代码、报错弹窗、文档扫描的截图。
Args: image: 图片的本地路径、http(s):// URL、file:// 或 data:image/...;base64,...。
Returns: 逐字转录的文字内容。
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": "<image>"
},
"name": "extract_text_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |