list_commits
List commits from a GitHub repository branch. Filter by author, path, or commit SHA to find specific changes and review history.
Instructions
List commits on a repository branch
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Branch name or commit SHA. Default: default branch | |
| page | No | ||
| path | No | Filter commits touching this file path | |
| repo | Yes | ||
| owner | Yes | ||
| author | No | GitHub login or email to filter by | |
| per_page | No |