图片文字识别
ocr_image识别单张图片(png/jpg/webp,≤ 8MB)中的文字,返回 fullText 与分块(含置信度 conf/坐标 bbox)。计费工具(占 1 次当日 OCR 额度,失败不扣)。imageUrl 必须是公网可访问 URL;本地文件路径无法使用。mode=full 只出全文(blocks 为空),structured 只出带 conf/bbox 的分块(fullText 为空),auto 两者都出。结果取值:读 content[0](纯 JSON)或 structuredContent,不要把多个 content 块拼接。
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(两者都出);full 只全文;structured 只分块 | |
| imageUrl | Yes | 图片公网 URL,≤ 8MB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| quota | No | ||
| blocks | No | 分块结果;mode=full 时为空数组。每块含 text/conf/bbox | |
| engine | No | ||
| fullText | No | 整图拼接全文;mode=structured 时为空串 | |
| requestId | No |