List Commits
list_commitsList commits from a Bitbucket repository, filtered by revision, path, or ref range. Supports pagination for large histories.
Instructions
List commits for a repository, optionally scoped to a revision or path.
Args: repo_slug: Repository slug revision: Branch, tag or commit hash to start from (optional; defaults to all branches). A branch name containing '/' is ambiguous here — resolve it to a commit hash first (e.g. via get_branch) if listing fails. workspace: Workspace name (optional, defaults to configured workspace) path: Restrict history to commits touching this file/directory path include: Only commits reachable from this ref exclude: Exclude commits reachable from this ref page_size: Items per page (default: 30) max_pages: Maximum pages to fetch (default: 1, max recommended: 10)
Returns: Paginated list of commits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| exclude | No | ||
| include | No | ||
| revision | No | ||
| max_pages | No | ||
| page_size | No | ||
| repo_slug | Yes | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |