get_commit_diff
Retrieves the code changes (diff) for a specified commit, identified by SHA or branch, within a GitLab project.
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": {
"project_id": "<project_id>",
"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 | |
| project_id | Yes | Project ID or path |