Merge PDF
merge_pdfCombine two or more PDFs into one new PDF in the order you specify, preserving form fields, links, and the first file’s bookmarks while leaving input files unchanged.
Instructions
Join two or more PDFs into one new PDF, in the order given. Use this to combine files; to pick pages from one file use extract_pdf_pages. Form fields, links and the first file’s bookmarks are kept. Returns the saved path and the total page count; inputs are not changed and an existing file is never overwritten ("name (2).pdf" is used instead).
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": {
"files": "<files>"
},
"name": "merge_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | PDF paths, in order. | |
| output | No | Where to save the result. Defaults to a new file next to the input. | |
| passwords | No | Passwords for protected inputs, in the same order as files. |