merge_documents_as_versions
Merge duplicate documents into versions of a root document, so scans and emailed copies become one document's version history.
Instructions
⚠️ Fold other documents into one document as its versions: each document in merge_documents stops existing as a separate document and becomes a version of root_document_id. Use it when the same paper arrived twice (e.g. a scan and a later emailed copy). Runs asynchronously.
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": {
"root_document_id": "<root_document_id>",
"merge_documents": "<merge_documents>",
"confirm": "<confirm>"
},
"name": "merge_documents_as_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true — merged documents no longer exist as separate documents | |
| version_label | No | Label for the new versions | |
| merge_documents | Yes | Documents to turn into versions of the root | |
| root_document_id | Yes | The document that keeps existing and receives the versions |