list_commits
Retrieve commit history from a Bitbucket repository to track changes, filter by branch or specific commits, and manage version control data.
Instructions
List commits in a repository.
Args: repo_slug: Repository slug (name) branch: Branch name to list commits from (optional) include: Commit hash to include (optional) exclude: Commit hash to exclude (optional) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of commits with their details
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 |
|---|---|---|---|
| repo_slug | Yes | ||
| branch | No | ||
| include | No | ||
| exclude | No | ||
| workspace | No | ||
| page | No | ||
| pagelen | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||