merge_pdf
Combine multiple PDF files into one document while maintaining their original order.
Instructions
Merge two or more PDF files into a single PDF, preserving order. Outputs a .pdf file on disk and returns its 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_files": "<input_files>"
},
"name": "merge_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_files | Yes | Two or more PDF files to merge, in order. | |
| 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. |