apply_merge
Apply a resolved merge after conflict resolution. Use finalize:false to prepare and review, then finalize:true to commit and reload the editor.
Instructions
Apply a merge whose conflicts are all resolved. Call twice: first with finalize:false to prepare and review, then finalize:true to commit. finalize:true writes the merge checkpoint onto the current branch and RELOADS the editor (the tool waits for reconnect and returns vcs_status); finalize:false does not reload. When NOT to use: to abort a merge (use cancel_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": {
"mergeId": "<mergeId>",
"finalize": "<finalize>"
},
"name": "apply_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mergeId | Yes | Id of the merge (from start_merge) | |
| finalize | Yes | false = prepare and review the merge; true = commit it (only after a finalize:false pass and all conflicts resolved) |