list_commits
Retrieve a paginated list of commits from a GitHub repository by owner and repo, with optional filtering by branch or file path.
Instructions
List commits in a GitHub repository. Docs: https://docs.github.com/en/rest/commits/commits#list-commits
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 | SHA or branch to list commits from | |
| page | No | ||
| path | No | Only commits touching this file path | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| per_page | No |