pdf_repair
Repair corrupted or malformed PDFs by rewriting the cross-reference table and save the repaired file to a chosen output path.
Instructions
Repairs a corrupted or malformed PDF by rewriting its cross-reference table.
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": "<input>",
"output": "<output>"
},
"name": "pdf_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the PDF to repair. | |
| output | Yes | Path to save the repaired PDF. |