ocr_image
Extract text from images using pluggable OCR backends with automatic fallback across Windows OCR, RapidOCR, and Tesseract; returns full text plus optional line and word boxes.
Instructions
Recognize text in an image with pluggable OCR backends. backend=auto tries Windows built-in OCR, then RapidOCR, then Tesseract. Returns full text, per-line boxes/confidence and word boxes when available.
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_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Local path, base64, data URI or http(s) URL | |
| detail | No | Include line/word boxes; false returns text only | |
| backend | No | OCR engine | auto |
| upscale | No | Enlarge small images 2x before recognition | |
| language | No | Windows BCP-47 tag (zh-Hans-CN) or Tesseract lang (chi_sim+eng) | |
| priority | No | Override auto backend order |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||