list_commits
Retrieve commits from a GitHub repository, optionally filtered by branch or commit SHA, file path, and page size, to inspect repository history.
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": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Branch name or commit SHA to start from | |
| path | No | Only commits containing this file path | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| per_page | No | Results per page (max 100) |