Repair a PDF
pdf_repairRepair damaged PDFs in superPDF AI by rebuilding their cross-reference table, saving the fixed copy to a new file, and reporting what was fixed.
Instructions
Rewrite a damaged PDF and rebuild its cross-reference table. Reports what was fixed.
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 a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| fixed | Yes | ||
| pages | Yes | ||
| output | Yes |