list_commits
Retrieve commit history from a Bitbucket Cloud repository with branch filtering and pagination options to track code changes.
Instructions
List commits in a repository with optional filtering by branch.
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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| branch | No | Branch name to filter commits | |
| include | No | Commit to include | |
| exclude | No | Commit to exclude | |
| page | No | Page number | |
| pagelen | No | Results per page |