get_commit_diff
Fetch file diffs for a specific GitLab commit to inspect exact code changes, and choose commit metadata when patch details are not needed.
Instructions
Get changes/diffs of a specific commit. Return the file diffs for one commit. Use get_commit for metadata without the patch.
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 | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| full_diff | No | Whether to return the full diff or only first page (default: false) | |
| project_id | Yes | Project ID or complete URL-encoded path to project |