convert_file
Convert or process files with GuruPDF: transform between 100+ formats (PDF, Word, Excel, images, ebooks) or apply PDF tools (compress, merge, split, protect, OCR). Saves result next to input.
Instructions
Convert or process a local file (or URL) with GuruPDF. Convert between 100+ formats (PDF ⇄ Word/Excel/PowerPoint, images, ebooks, etc.) or run a PDF tool (compress, merge, split, rotate, protect, watermark, OCR…). Saves the result next to the input and returns the path.
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>",
"to": "<to>"
},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format (e.g. 'pdf', 'docx', 'png') OR a tool slug (e.g. 'compress-pdf', 'merge-pdf', 'protect-pdf'). | |
| wait | No | Wait for the result (default true). If false, returns a job id to check with get_status. | |
| input | Yes | Absolute path to a local file (or several paths for merge), or an https URL for url-to-pdf. | |
| options | No | Tool-specific options, e.g. { password, page_range, rotation, watermark_text }. | |
| output_dir | No | Folder to save the result in. Defaults to the input file's folder. |