listCommits
Retrieve commits from a Bitbucket repository with filters for branch, include/exclude, and pagination.
Instructions
List commits in a repository
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": "listCommits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | When true (and no page is provided), automatically follows Bitbucket next links to return all items up to 1000. | |
| page | No | Bitbucket page number to fetch (1-based). | |
| branch | No | Branch name or commit hash to start from | |
| exclude | No | Commits to exclude | |
| include | No | Commits to include (merges, etc) | |
| pagelen | No | Number of items per page (Bitbucket pagelen). Defaults to 10 and caps at 100. | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Bitbucket workspace name |