ocr
Convert PDFs or images into page-by-page Markdown from URLs, data URLs, or local file paths, optionally extracting figures to an output directory. Select specific pages or ranges to control cost.
Instructions
MinerU2.5-Pro 文档 OCR:PDF/图片 → 逐页 Markdown。document 为 http(s) URL、 data URL 或本地文件路径(托管模式请用 URL)。pages 为页码列表 [0,1,2] 或范围 "0-5"。 include_images=true 时提取插图并落盘到输出目录(返回路径,不内联 base64)。 按页计费(pts);长文档整篇解析完才返回,耗时较长。
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": {
"document": "<document>"
},
"name": "ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| document | Yes | ||
| image_limit | No | ||
| include_images | No |