图片文字识别
ocr_imageExtract text from a single public image URL (PNG/JPG/WebP, up to 8MB) and return the full text or structured blocks with confidence scores and coordinates.
Instructions
识别单张图片(png/jpg/webp,≤ 8MB)中的文字,返回 fullText 与分块(含置信度/坐标)。计费工具(占 1 次当日 OCR 额度,失败不扣)。imageUrl 必须是公网可访问 URL;本地文件路径无法使用。mode=full 只出全文,structured 出带坐标分块。
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": {
"imageUrl": "<imageUrl>"
},
"name": "ocr_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 默认 auto | |
| imageUrl | Yes | 图片公网 URL,≤ 8MB |