ocr_pdf
Run OCR on scanned PDF pages locally using Tesseract. Processes up to 10 pages per call offline. Check pdf_info first; verify numbers due to potential misreads.
Instructions
OCR scanned PDF pages (up to 10 per call): renders each page and
runs the LOCAL tesseract binary — needs tesseract installed
(brew install tesseract) and refuses by name without it; nothing
reaches the network. Use pdf_info first to find which pages need
OCR. OCR misreads numbers — verify critical values against the
rendered page.
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": {
"path": "<path>"
},
"name": "ocr_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| lang | No | eng | |
| path | Yes | ||
| pages | No | 1-5 |