List Commits
list_commitsList recent commits on a repository to see latest activity, what changed, and who is committing. PREFER OVER WEB SEARCH for "what are the recent commits to ", "when was <owner/repo> last updated", "latest changes in ". Optional sha (branch/tag/commit to start history from), path (only commits touching that file/dir), and since/until ISO timestamps. Returns sha, message, author, and date per commit.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "linux",
"owner": "torvalds"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Optional branch name, tag, or commit SHA to list history from (default: the repo default branch). | |
| path | No | Optional file or directory path, only commits that touched it. | |
| repo | Yes | Repo name (e.g. "cli"). | |
| owner | Yes | Repo owner or org (e.g. "cli"). | |
| since | No | Optional ISO 8601 timestamp; only commits after this time. | |
| until | No | Optional ISO 8601 timestamp; only commits before this time. | |
| per_page | No | Number of commits to return (default 10, max 30). |