OCR a scanned PDF
pdf_ocrRun OCR over a scanned PDF and return a searchable PDF with an added text layer (Tesseract engine). Processing takes roughly 30-90 seconds depending on length. Use this when the user asks to make a scanned PDF searchable or extract text from scans.
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": {
"file": "<file>"
},
"name": "pdf_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Base64-encoded file bytes (no data: URL prefix). | |
| lang | No | ||
| filename | No | Original file name including extension. |