repair_pdf
Repair damaged or malformed PDF files that fail to open. Fixes scanned PDFs to ensure proper rendering and accessibility.
Instructions
Attempt to repair a damaged or malformed PDF. Useful for scanned PDFs that fail to open or render correctly in some readers. Produces a .pdf file on disk.
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": {
"input_file": "<input_file>"
},
"name": "repair_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_file | Yes | Path to the damaged PDF file to repair. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |