git_list_commits
Lists recent commits on a branch.
Default 10.
- Tool name
- git_list_commits
- Group
- GitHub
- Risk
- low
- Needs approval
- never
- Approval rule
- No approval.
- Allowed in scheduled jobs
- No
- Default
- off
Parameters
| Name | Type | Required | Default | Meaning | Limits |
|---|---|---|---|---|---|
| repo | string | Yes | Repository as owner/name. | ||
| branch | string | No | main | Branch name. | |
| limit | integer | No | 10 | Maximum number of results. |
Returns
Commit lines.
Example (made up for this page)
{
"repo": "demo"
}abc1234 Fix typoSide effects
- Calls the GitHub API.
How it can fail
| When | What the agent sees |
|---|---|
| No token | Not configured text |
See also:GitHub tools
Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.