ocr_pdf
Turn PDFs into Markdown by OCR-ing scanned pages with a local vision model; optionally convert selected page ranges or save output to a file.
Instructions
Convert a PDF to Markdown, OCR-ing scanned/image pages via oMLX.
Text-layer pages go through MarkItDown directly; scanned pages are
rendered and OCR'd by the vision model. If pages is given (e.g.
"1-5,9"), only those pages are converted. If out_path is given the
Markdown is written there and a summary is returned instead.
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 |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| out_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |