ocr_by_url
Extract text from an image at a given URL using OCR. Supports various output formats and preprocessing like auto-enhance, rotation, and binarization.
Instructions
对 URL 图像执行 OCR 识别。
Args:
image_url: 图像的 HTTP/HTTPS URL
output_format: 输出格式 (plain/json/markdown/structured)
use_cache: 是否使用 URL 缓存
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_url": "<image_url>"
},
"name": "ocr_by_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | ||
| binarize | No | ||
| image_url | Yes | ||
| use_cache | No | ||
| auto_enhance | No | ||
| output_format | No | json |