ocr_extract
Extract text from images or PDF files using OCR. Ideal for reading text from screenshots, documents, or code images.
Instructions
从图片或 PDF 中提取文字(OCR)。适合识别截图、文档、代码中的文本内容。
Args: image: 图片或 PDF 文件路径(本地绝对路径)或远程 URL prompt: OCR 提示词。默认提取并格式化所有文字内容
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": "ocr_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |