Prerequisites
- Bitbucket Cloud access to the workspaces and repos the agent should use
- An agent you can edit
- Users who will chat with the agent must complete the Bitbucket OAuth connect flow when prompted
Setup
- Open the agent → Toolkits → add Bitbucket.
- Optionally set a default workspace in toolkit config (tools still accept an explicit workspace when needed).
- Save the agent. In Chat, connect Bitbucket when prompted (or via the authenticate tool).
@-mention Bitbucket tools in the personality prompt for repo, PR, or issue tasks.
Available tools
When the user is not connected, the agent can offer Authenticate Bitbucket to start the OAuth flow.
Use cases
- Summarize open pull requests or recent commits for a repository
- Read a config or README file from a branch during troubleshooting
- Open a PR after documenting a change, or file a bug issue from chat
- Discover which workspaces and repos the signed-in user can access
Tips
- Access is limited to what the connected Bitbucket user can see — not a shared service account unless that account connects.
- List tools paginate with a page size capped at 100 (default is smaller).
- Creating PRs and issues needs sufficient Bitbucket write permissions on the repo.
- Prefer an explicit workspace and repo slug when names collide.
- For GitHub or GitLab, use those toolkits instead (GitHub, GitLab).