list_commits
List recent commits in a Bitbucket repository, optionally filtered by branch, to retrieve commit messages, authors, dates, and hashes.
Instructions
List recent commits in a repository, optionally filtered by branch. Returns commit messages, authors, dates, and hashes.
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 |
|---|---|---|---|
| branch | No | The branch name or commit hash to list commits from. Defaults to the main branch. | |
| repo_slug | Yes | The repository slug. | |
| workspace | No | The workspace slug. Optional if BITBUCKET_WORKSPACE env var is set. |