List commit diffs
list_commit_diffsRetrieve files and patch hunks changed by a GitLab commit. Provide project ID or path and commit SHA to see the diffs.
Instructions
Return the files and patch hunks changed by one GitLab 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": "<project>",
"sha": "<sha>"
},
"name": "list_commit_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | Commit SHA or Git ref. | |
| page | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| unidiff | No | ||
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |