get_commit_diff
Inspect code changes in a GitLab commit by retrieving its diff. Specify the project and commit SHA to get the changes, with an option to view the complete diff.
Instructions
Get changes/diffs of a specific commit
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": {
"sha": "<sha>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | The commit hash or name of a repository branch or tag | |
| full_diff | No | Whether to return the full diff or only first page (default: false) | |
| project_id | No | Project ID or complete URL-encoded path to project |