github_list_commits
List GitHub repository commits with filters for branch, file path, author, and pagination. Retrieve commit history for any repo to trace changes and audit activity.
Instructions
List commits in a repository
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": "github_list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Branch or commit SHA to start from | |
| page | No | Page number | |
| path | No | Only commits containing this file path | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner username | |
| author | No | GitHub username or email address | |
| per_page | No | Results per page |