Compare repository refs
compare_refsCompare two branches, tags, or commits to retrieve their commits and per-file diffs, making change review straightforward.
Instructions
Compare two branches, tags, or commits and return commits plus per-file diffs.
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": "<project>",
"from": "<from>",
"to": "<to>"
},
"name": "compare_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| unidiff | No | ||
| straight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |