repair_pdf
Repair damaged or corrupted PDF files by providing the local file path. Optionally specify an output directory and file name for the restored document.
Instructions
Repair a damaged or problematic PDF using the PDF4me RepairPdf API. Provide the local file path to the PDF. Optionally specify an output directory and output file name.
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_path": "<file_path>"
},
"name": "repair_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the PDF file to repair. | |
| output_dir | No | ||
| output_file_name | No |