list_commits
Retrieve recent commits for any GitLab project, filtered by branch or file path to track changes efficiently.
Instructions
List recent commits for a project. Filter by branch or file path.
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>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| ref | No | Branch or tag | |
| path | No | File path to filter commits |