List commits
list_commitsRetrieve commits on a branch or tag, optionally filtered by file path, to review change history in Forgejo or Gitea repositories.
Instructions
List commits on a branch/ref, optionally limited to a file path.
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, tag or SHA | |
| page | No | Page number (default 1) | |
| path | No | ||
| repo | Yes | Repository name | |
| limit | No | Results per page (default 30, max 100) | |
| owner | Yes | Repository owner (user or organization) |