Compare versions
diff_branchesShow what changes from sourceBranch to targetBranch, as a line diff per file: - lines are sourceBranch's, + lines are targetBranch's, and each header names its version. To see what a version changed, pass the version it was made from as sourceBranch. Get ids from list_branches. A long diff comes a window of lines at a time: the answer says the offset to read on from.
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>",
"offset": "<offset>",
"limit": "<limit>",
"projectId": "<projectId>"
},
"name": "diff_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | Most lines on the page, 1 to 2000. null means 300. | |
| offset | Yes | lines to skip: the offset the page before says to call again with. null starts at the first. | |
| 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. | |
| sourceBranch | Yes | ||
| targetBranch | Yes |