ocr_pdf
Convert PDF files to Markdown using OCR, with options to process specific page ranges and handle large files by splitting them into chunks.
Instructions
OCR PDF 文件并返回 Markdown(小文件直接调用;超大 PDF 建议用 start_pdf_ocr 异步执行)。
path 为本地 PDF 文件路径;pages 为页码范围(1-indexed 闭区间): "all" 全部、"5" 第 5 页、"3-10" 第 3~10 页。 大文件自动按每片 8 页切分、逐片识别后合并,临时文件用后即删。 识别期间通过 MCP 进度通知推送百分比与预计剩余时间(客户端需在调用时 附带 progressToken 才能收到)。 返回 {"status":"ok", "markdown":..., "pages":[...], "chunk_count":..., "usage":...}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | all |