ocr_by_content
Extract text from Base64-encoded images. Choose from plain, JSON, Markdown, or structured output with optional enhancement, rotation, and binarization.
Instructions
对 Base64 编码的图像执行 OCR 识别。
Args:
image_base64: Base64 编码的图像(支持 data:image/... 前缀)
output_format: 输出格式 (plain/json/markdown/structured)
auto_enhance: 自动增强图像对比度和锐度
rotate: 自动旋转图像(基于 EXIF)
binarize: 二值化图像
Returns:
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_base64": "<image_base64>"
},
"name": "ocr_by_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | ||
| binarize | No | ||
| auto_enhance | No | ||
| image_base64 | Yes | ||
| output_format | No | json |