merge_pdfs
Combine multiple PDF files in a specified order into one output document, with optional password handling for encrypted or protected inputs.
Instructions
Merge PDFs in the given order into output_path.
passwords optionally maps an input path to its password for encrypted inputs. An input that forbids document assembly needs its owner password.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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_paths": "<input_paths>",
"output_path": "<output_path>"
},
"name": "merge_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| passwords | No | ||
| input_paths | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| output | Yes | ||
| sources | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |