list_commits
Lists repository commits newest first without cloning, with include/exclude filters for branches, tags, or hashes and optional path scoping; follow the cursor to page through results.
Instructions
List a page of commits, newest first, without cloning.
include selects commits reachable from any supplied branch/tag/hash; exclude
removes commits reachable from those revisions. For commits in v2 but not v1,
use include=["v2"], exclude=["v1"]. branch is an additional include alias.
path restricts changes to a file/directory. Follow next_cursor until has_more
is false. cursor preserves its issued filters/page size; limit (1-100) and
filters apply only to the first page. Absence from one page is not absence
from repository history.
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": {
"repo_slug": "<repo_slug>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| limit | No | ||
| branch | No | ||
| cursor | No | ||
| exclude | No | ||
| include | No | ||
| repo_slug | Yes |