Merge versions
merge_branchCombine sourceBranch into targetBranch with a three-way file merge; conflicts fail. targetBranch must be the version sourceBranch was made from (list_branches shows it). A version can be combined again after more edits. Set switchToTarget explicitly. To put the option the person picked in place of one you merged before, merge the picked option's version with the earlier option's version as baseBranch: only what differs between the two options changes, and every other edit stays.
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": {
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>",
"switchToTarget": "<switchToTarget>",
"baseBranch": "<baseBranch>",
"projectId": "<projectId>"
},
"name": "merge_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| baseBranch | Yes | The version the merge counts the changes from, in place of the two versions' common ancestor: the option you merged before, when the person now picks another. null: the common ancestor. | |
| sourceBranch | Yes | ||
| targetBranch | Yes | ||
| switchToTarget | Yes |