Merge two documents
mergeMerge another document into main. Gives the next version of main as a draft, with each conflict as a pair of proposed items. Resolve conflicts with the resolve tool. Give base, the common earlier version, for a three-way 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": {
"main": "<main>",
"other": "<other>"
},
"name": "merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The common earlier version (optional): OpenSkopos JSON, YAML or Markdown text, as in the file. | |
| main | Yes | The main document: OpenSkopos JSON, YAML or Markdown text, as in the file. | |
| other | Yes | The document to merge into main: OpenSkopos JSON, YAML or Markdown text, as in the file. | |
| pairs | No | Pairs that people confirmed, as [main ID, other ID]. No other items pair. | |
| output_format | No | The format of the document in the result. Default: the format of the input. |