ocr_pdf
Extract text from scanned or image-based PDFs with OCR when standard page reading returns empty or garbled text.
Instructions
OCR (Optical Character Recognition) for scanned or image-based PDF files. Use this ONLY when read_document_page returns empty or garbled text, which indicates the PDF contains scanned images instead of selectable text. WARNING: OCR is slow (3-10 seconds per page). Prefer read_document_page first.
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": {
"filePath": "<filePath>"
},
"name": "ocr_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the PDF file | |
| pageNumber | No | Page number to OCR (1-indexed). If omitted, OCR all pages (max 20). |