get_branch_diffs
Retrieve the changes between two branches or commits in a GitLab project. Identify diffs to review code differences and track modifications.
Instructions
Get the changes/diffs between two branches or commits in a GitLab project
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": {
"project_id": "<project_id>",
"from": "<from>",
"to": "<to>"
},
"name": "get_branch_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The target branch or commit SHA to compare to | |
| from | Yes | The base branch or commit SHA to compare from | |
| straight | No | Comparison method: false for "..." (default), true for "--" | |
| project_id | Yes | Project ID or path |