commits
List recent repository history or retrieve details for a specific commit by providing its hash.
Instructions
List recent commits for a repository, or get details for a single commit when commit_hash is provided.
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": "commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | (list only) Page number or opaque next page URL | |
| branch | No | (list only) Branch name (defaults to main branch) | |
| pagelen | No | (list only) Items per page (10-100, default 10) | |
| repo_slug | Yes | Repository slug/name | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. | |
| commit_hash | No | Commit hash. If provided, returns single commit details; otherwise lists recent commits. |