Merge PDFs into one file
pdf_mergeJoins two or more PDFs into a single file in the order you specify, writing the result to a new path while leaving the original files unchanged.
Instructions
Call this tool to join several PDFs into one, in the order given. Page sizes are kept as-is, so a merged file may have mixed sizes, and the answer says so. Inputs are never modified. Free tier: up to 5 files per merge.
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": {
"paths": "<paths>",
"out_path": "<out_path>"
},
"name": "pdf_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | The PDFs to join, in the order they should appear | |
| out_path | Yes | Where to write the merged PDF | |
| overwrite | No | Replace out_path if a file is already there. Default false: an existing file is never overwritten |