Merge documents
merge_documentsConsolidate several documents into a single PDF in the order given, while retaining originals unless deletion is requested.
Instructions
Merge several documents into one new PDF, in the order given. The originals stay unless delete_originals is set. Runs asynchronously — poll the returned task with get_task.
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": {
"documents": "<documents>"
},
"name": "merge_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documents | Yes | Document IDs in the order the pages should appear. | |
| archive_fallback | No | Fall back to the archived PDF/A version when an original cannot be merged. | |
| delete_originals | No | Delete the source documents after a successful merge. Irreversible — confirm first. | |
| metadata_document_id | No | Copy tags, correspondent and type from this document onto the merged result. |