list_commits
List recent commits on a GitHub repository branch. Provide owner, repo, and optional branch to retrieve commit history with configurable limit.
Instructions
List recent commits on a 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 |
|---|---|---|---|
| repo | Yes | Repository name | |
| limit | No | Max commits to return | |
| owner | Yes | Repository owner (user or org) | |
| branch | No | Branch name; defaults to the repo's default branch |