# Bitbucket

Bitbucket is a Git-based code hosting and collaboration platform supporting private and public repositories, enabling teams to manage and review code through pull requests and integrations

- **Category:** developer tools
- **Auth:** OAUTH2
- **Composio Managed App Available?** Yes
- **Tools:** 107
- **Triggers:** 0
- **Slug:** `BITBUCKET`
- **Version:** 20260429_00

## Tools

### Approve Pull Request

**Slug:** `BITBUCKET_APPROVE_PULL_REQUEST`

Tool to approve a pull request as the authenticated user. Use when you need to formally approve changes in a pull request review process.

### Browse repository path

**Slug:** `BITBUCKET_BROWSE_REPOSITORY_PATH`

Tool to retrieve content for a file path or browse directory contents at a specified revision in a Bitbucket repository. Use when you need flexible access to repository content - returns raw file data for files or paginated directory listings for directories.

### Create a branch

**Slug:** `BITBUCKET_CREATE_BRANCH`

Creates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bitbucket's naming conventions, and not include the 'refs/heads/' prefix.

### Create an issue

**Slug:** `BITBUCKET_CREATE_ISSUE`

Creates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component IDs exist.

### Create an issue comment

**Slug:** `BITBUCKET_CREATE_ISSUE_COMMENT`

Adds a new comment with markdown support to an existing Bitbucket issue.

### Create a pull request

**Slug:** `BITBUCKET_CREATE_PULL_REQUEST`

Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.

### Create pull request comment

**Slug:** `BITBUCKET_CREATE_PULL_REQUEST_COMMENT`

Creates a new comment on a Bitbucket pull request. Supports top-level comments, threaded replies, and inline code comments. Use when providing feedback on a PR, replying to existing comments, or commenting on specific code lines.

### Create commit report annotations

**Slug:** `BITBUCKET_CREATE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS`

Adds multiple annotations to a commit report in bulk. Use when you need to add code analysis findings (vulnerabilities, code smells, bugs) to a report attached to a specific commit.

### List commits from revision (POST)

**Slug:** `BITBUCKET_CREATE_REPOSITORIES_COMMITS2`

Tool to list commits from a revision using POST method. Identical to GET endpoint but allows sending include/exclude parameters in request body to avoid URL length limits. Use when include/exclude parameters are too long for query strings.

### Create repository

**Slug:** `BITBUCKET_CREATE_REPOSITORY`

Creates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project_key` is not provided.

### Create snippet comment

**Slug:** `BITBUCKET_CREATE_SNIPPET_COMMENT`

Posts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.

### Create team pipeline variable

**Slug:** `BITBUCKET_CREATE_TEAMS_PIPELINES_CONFIG_VARIABLES`

Creates a team-level pipeline configuration variable in Bitbucket. Use when you need to add environment variables or configuration values that should be available to all pipelines within a team.

### Create user pipeline variable

**Slug:** `BITBUCKET_CREATE_USERS_PIPELINES_CONFIG_VARIABLES`

Creates a user-level pipeline variable for Bitbucket pipelines. Use when you need to create account-level configuration variables that can be used across all repositories owned by the user.

### Delete commit comment

**Slug:** `BITBUCKET_DELETE_COMMIT_COMMENT`

Permanently deletes a specific comment on a commit. Use when removing outdated, incorrect, or unwanted feedback on a commit.

### Delete issue

**Slug:** `BITBUCKET_DELETE_ISSUE`

Permanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within the given `workspace`.

### Delete pull request comment

**Slug:** `BITBUCKET_DELETE_PULL_REQUEST_COMMENT`

Permanently deletes a specific pull request comment (top-level, inline, or threaded reply). Use when removing outdated, incorrect, or unwanted feedback from a pull request.

### Delete commit report annotation

**Slug:** `BITBUCKET_DELETE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS`

Deletes a single annotation matching the provided ID from a commit report. Use when you need to remove a specific annotation from a code analysis report.

### Delete repository

**Slug:** `BITBUCKET_DELETE_REPOSITORY`

Permanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.

### Delete snippet watch

**Slug:** `BITBUCKET_DELETE_SNIPPETS_WATCH`

Stops watching a specific snippet. Use when you want to unsubscribe from notifications for a snippet.

### Delete user pipeline variable

**Slug:** `BITBUCKET_DELETE_USER_PIPELINE_VARIABLE`

Permanently deletes a user-level pipeline configuration variable identified by its UUID. Use this to remove pipeline variables that are no longer needed at the account level.

### Get branch

**Slug:** `BITBUCKET_GET_BRANCH`

Retrieves detailed information about a specific branch in a Bitbucket repository. Use when you need to get branch metadata, the commit it points to, or verify a branch exists.

### Get Commit Build Status

**Slug:** `BITBUCKET_GET_COMMIT_BUILD_STATUS`

Get a specific build status for a commit in Bitbucket. Use when you need to check the status of a particular build/CI run for a commit.

### Get Commit Changes

**Slug:** `BITBUCKET_GET_COMMIT_CHANGES`

Tool to retrieve a page of changes made in a specified commit, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a specific commit or commit range.

### Get commit comment

**Slug:** `BITBUCKET_GET_COMMIT_COMMENT`

Retrieves a specific comment from a commit by its ID. Use when you need to fetch details of a particular commit comment including content, author, timestamps, and inline location.

### Get Commit Diff

**Slug:** `BITBUCKET_GET_COMMIT_DIFF`

Tool to retrieve the unified diff between two provided revisions or for a single commit in a Bitbucket repository. Use when you need to see the actual code changes in a commit or between two commits. Supports filtering by file path and various diff options.

### Get current user (v2)

**Slug:** `BITBUCKET_GET_CURRENT_USER2`

Tool to retrieve complete profile information for the currently authenticated Bitbucket user. Use when you need comprehensive user details including account_id, username, nickname, and other profile fields.

### Get deployment environment variables

**Slug:** `BITBUCKET_GET_DEPLOYMENT_ENVIRONMENT_VARIABLES`

Retrieves deployment environment level variables for a specific Bitbucket repository environment. Use when you need to view or audit environment-specific configuration variables for deployments.

### Get file from repository

**Slug:** `BITBUCKET_GET_FILE_FROM_REPOSITORY`

Retrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.

### Get hook events

**Slug:** `BITBUCKET_GET_HOOK_EVENTS`

Retrieves a paginated list of all valid webhook events for a specified entity type (repository or workspace). Use when you need to discover available webhook event types for subscription or webhook configuration.

### Get OpenID configuration for OIDC in Pipelines

**Slug:** `BITBUCKET_GET_OPENID_CONFIGURATION`

Retrieves the OpenID Connect discovery configuration for Bitbucket Pipelines OIDC. Use when integrating Bitbucket Pipelines with resource servers (AWS, GCP, Vault) using OpenID Connect authentication. Returns issuer URL, JWKS URI, and supported capabilities.

### Get Pull Request

**Slug:** `BITBUCKET_GET_PULL_REQUEST`

Get a single pull request by ID with complete details.

### Get pull request comment

**Slug:** `BITBUCKET_GET_PULL_REQUEST_COMMENT`

Tool to retrieve a specific comment from a pull request by its ID. Use when you need to fetch details of a particular pull request comment including content, author, timestamps, and inline location.

### Get Pull Request Commits

**Slug:** `BITBUCKET_GET_PULL_REQUEST_COMMITS`

Tool to retrieve commits for a specified pull request. Use when reviewing the commit history of a PR or analyzing changes included in a pull request.

### Get Pull Request Diff

**Slug:** `BITBUCKET_GET_PULL_REQUEST_DIFF`

Tool to fetch the unified diff for a Bitbucket pull request (follows 302 redirect to repository diff). Use when reviewing code changes in a PR. Supports optional truncation for large diffs via max_chars parameter.

### Get Pull Request Diffstat

**Slug:** `BITBUCKET_GET_PULL_REQUEST_DIFFSTAT`

Tool to get the diffstat for a Bitbucket pull request, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a PR.

### Get raw file content

**Slug:** `BITBUCKET_GET_RAW_FILE_CONTENT`

DEPRECATED: Use BITBUCKET_GET_FILE_FROM_REPOSITORY instead. Tool to retrieve the raw content of a file from a Bitbucket repository at a specified commit, branch, or tag. Use when you need to read file contents from a specific revision.

### Get Repository Branching Model

**Slug:** `BITBUCKET_GET_REPOSITORIES_BRANCHING_MODEL`

Return the branching model as applied to the repository. Use when you need to understand the repository's branch workflow configuration, including development/production branches and branch type prefixes.

### Get Repository Commit

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT`

Tool to retrieve detailed information about a specific commit in a Bitbucket repository. Use when you need to get complete commit details including author, message, date, parents, and related links.

### Get commit comments

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT_COMMENTS`

Retrieves all comments on a specific commit in a Bitbucket repository. Returns both global and inline code comments. Use when you need to view feedback, discussions, or notes left on a specific commit.

### Get commit report

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT_REPORT`

Returns a single report matching the provided ID from a commit. Use when you need to retrieve details of a specific analysis report (e.g., security scan, code coverage, test results, or bug report) for a commit.

### Get Commit Reports

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT_REPORTS`

Tool to get reports linked to a specific commit. Use when you need to retrieve analysis results, test reports, security scans, or code coverage data associated with a commit.

### Get commit report annotation

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS`

Returns a single annotation matching the provided ID from a commit report. Use when you need to retrieve details of a specific code analysis finding (e.g., vulnerability, code smell, or bug) identified in a commit.

### Get commit statuses

**Slug:** `BITBUCKET_GET_REPOSITORIES_COMMIT_STATUSES`

Returns all build statuses (e.g., CI/CD pipeline results) for a specific commit. Use when you need to check build status, verify test results, or monitor deployment pipelines for a particular commit.

### Get effective branching model

**Slug:** `BITBUCKET_GET_REPOSITORIES_EFFECTIVE_BRANCHING_MODEL`

Retrieves the effective branching model for a Bitbucket repository, showing which branching model is currently applied (including any inheritance from project-level settings). Use when you need to understand the repository's branch workflow configuration, including development and production branches and branch type prefixes.

### Get Repository Environment

**Slug:** `BITBUCKET_GET_REPOSITORIES_ENVIRONMENTS2`

Retrieve detailed information about a specific deployment environment in a Bitbucket repository. Use when you need to get environment configuration, deployment settings, or check environment properties like locks and restrictions.

### Get file commit history

**Slug:** `BITBUCKET_GET_REPOSITORIES_FILEHISTORY`

Returns a paginated list of commits that modified the specified file. Use when you need to track file changes over time, find who modified a file, or determine when a file was created or last changed.

### Check if user voted for issue

**Slug:** `BITBUCKET_GET_REPOSITORIES_ISSUES_VOTE`

Tool to check whether the authenticated user has voted for a specific issue in a Bitbucket repository. Use when you need to verify if the current user has already voted on an issue before attempting to vote or unvote.

### Get Repositories Merge Base

**Slug:** `BITBUCKET_GET_REPOSITORIES_MERGE_BASE`

Get the merge base (best common ancestor) between two commits in a Bitbucket repository. Use when you need to find the common ancestor commit between two branches or commits for comparison or merge operations.

### Get specific pipeline

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES2`

Retrieve a specified pipeline from a Bitbucket repository. Use when you need to get detailed information about a specific pipeline execution including its status, build number, and results.

### Get repository pipelines caches

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_CACHES`

Retrieves the repository pipelines caches. Use when you need to list all caches configured for Bitbucket Pipelines in a specific repository.

### Get repository pipeline runners

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_RUNNERS`

Retrieves the list of self-hosted runners configured for a repository's pipelines. Use when you need to view available runners for pipeline execution.

### Get repository pipeline schedules

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_SCHEDULES`

Retrieves configured pipeline schedules for a Bitbucket repository. Use when you need to view scheduled pipeline runs and their cron patterns.

### Get repository SSH known hosts

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_SSH_KNOWN_HOSTS`

Retrieves repository-level SSH known hosts configured for Bitbucket Pipelines. Use when you need to list or verify SSH known hosts that Pipelines can connect to during builds.

### Get repository pipeline variables

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_VARIABLES`

Retrieves repository-level pipeline variables for a specific Bitbucket repository. Use when you need to view or audit pipeline configuration variables that are scoped to a repository.

### Get pipeline steps

**Slug:** `BITBUCKET_GET_REPOSITORIES_PIPELINES_STEPS`

Retrieves all steps for a given pipeline. Use when you need to inspect the individual steps of a pipeline execution, including their state, duration, and commands.

### Get pull requests activity log

**Slug:** `BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_ACTIVITY`

Get paginated activity log for all pull requests in a repository. Returns comments, updates, approvals, and request changes. Use when you need to track pull request activity history.

### Get pull request comments

**Slug:** `BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_COMMENTS`

Retrieves a paginated list of comments on a specific pull request in a Bitbucket repository. Returns global, inline, and threaded comments. Use when you need to view feedback, discussions, or reviews left on a pull request.

### Get pull request statuses

**Slug:** `BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_STATUSES`

Returns all build statuses (e.g., CI/CD pipeline results) for a specific pull request. Use when you need to check build status, verify test results, or monitor deployment pipelines for a pull request.

### Get repository refs

**Slug:** `BITBUCKET_GET_REPOSITORIES_REFS`

Returns the branches and tags in the repository. Use when you need to list all refs (both branches and tags) in a single API call with optional filtering by type, name pattern, or commit hash.

### Get tag

**Slug:** `BITBUCKET_GET_REPOSITORIES_REFS_TAGS`

Retrieves detailed information about a specific tag in a Bitbucket repository. Use when you need to get tag metadata, target commit details, or verify a tag exists.

### Get repositories src

**Slug:** `BITBUCKET_GET_REPOSITORIES_SRC`

Lists the contents of the root directory on the repository's main branch without needing to specify a commit or branch. This endpoint redirects to the main branch automatically.

### Get repository watchers

**Slug:** `BITBUCKET_GET_REPOSITORIES_WATCHERS`

Retrieves a paginated list of all the watchers on the specified repository. Use when you need to see who is watching a particular repository.

### Get repository

**Slug:** `BITBUCKET_GET_REPOSITORY`

Retrieves detailed information about a specific repository in a Bitbucket workspace. Use when you need to get repository metadata, settings, or details.

### Get Repository Patch

**Slug:** `BITBUCKET_GET_REPOSITORY_PATCH`

Tool to retrieve the git patch content for a Bitbucket repository at a specified revision or commit range. Use when you need to review code changes, generate diffs, or analyze modifications between commits. Returns raw patch in unified diff format.

### Get snippet

**Slug:** `BITBUCKET_GET_SNIPPET`

Retrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file structure.

### Get snippet watch status

**Slug:** `BITBUCKET_GET_SNIPPETS_WATCH`

Checks if the current user is watching a specific snippet. Use when you need to verify watch status for a snippet.

### Get SSH keys for user

**Slug:** `BITBUCKET_GET_SSH_LATEST_KEYS`

Retrieves a paginated list of SSH keys for a specified Bitbucket user. Use when you need to view or audit SSH keys configured for a user account.

### Get user

**Slug:** `BITBUCKET_GET_USER`

Retrieves public profile information for a specific Bitbucket user by username or UUID. Use when you need to get user details like display name, avatar, creation date, and links to related resources.

### Get user emails

**Slug:** `BITBUCKET_GET_USER_EMAILS`

Returns all the authenticated user's email addresses, both confirmed and unconfirmed. Use when you need to retrieve all email addresses associated with the current user's account.

### Get user email details

**Slug:** `BITBUCKET_GET_USER_EMAILS2`

Retrieves details about a specific email address for the authenticated user. Use when you need to check if an email is primary, confirmed, or verify email ownership.

### Get user permissions for repositories

**Slug:** `BITBUCKET_GET_USER_PERMISSIONS_REPOSITORIES`

Returns an object for each repository the caller has explicit access to, including their permission level. Use when you need to discover which repositories the authenticated user can access and their specific permissions.

### Get user permissions for workspaces

**Slug:** `BITBUCKET_GET_USER_PERMISSIONS_WORKSPACES`

Retrieves workspace memberships and permission levels for the authenticated user. Returns an object for each workspace the caller is a member of, along with their effective role (highest privilege level). Use when you need to determine which workspaces a user can access and their permission level in each.

### Get user workspaces

**Slug:** `BITBUCKET_GET_USER_WORKSPACES`

Tool to retrieve all workspaces accessible to the authenticated user. Use when you need to list workspaces the current user can access, optionally filtered by workspace slug or permission level.

### Get workspace

**Slug:** `BITBUCKET_GET_WORKSPACE`

Retrieves detailed information about a specific Bitbucket workspace. Use when you need to get workspace metadata, settings, or details.

### Get Workspace Pull Requests by User

**Slug:** `BITBUCKET_GET_WORKSPACES_PULLREQUESTS`

Tool to get all workspace pull requests authored by a specified user. Use when you need to retrieve pull requests created by a specific user across all repositories in a workspace.

### Search code in workspace

**Slug:** `BITBUCKET_GET_WORKSPACES_SEARCH_CODE`

Tool to search for code in the repositories of the specified workspace. Use when you need to find specific code patterns, function definitions, or text across all repositories in a workspace.

### List branches

**Slug:** `BITBUCKET_LIST_BRANCHES`

Lists branches in a Bitbucket repository with optional server-side filtering by name pattern (BBQL) and sorting. Use when you need to discover available branches, search for specific branch patterns, or navigate repository branch structure.

### List commits

**Slug:** `BITBUCKET_LIST_COMMITS`

Tool to retrieve a page of commits from a Bitbucket repository. Returns commits in reverse chronological order (newest first), similar to git log. Use when you need to browse commit history, filter commits by branch/tag, or restrict to commits affecting a specific path.

### List commits from revision

**Slug:** `BITBUCKET_LIST_COMMITS_FROM_REVISION`

Tool to list commits starting from a specific revision in a Bitbucket repository. Commits are paginated and returned in reverse chronological order. Use when you need to retrieve commit history from a specific commit, branch, or tag.

### List commits on master

**Slug:** `BITBUCKET_LIST_COMMITS_ON_MASTER`

Lists commits on the master branch of a Bitbucket repository. Use when you need to retrieve the commit history for the master branch, including commit messages, authors, dates, and parent relationships.

### List deployments

**Slug:** `BITBUCKET_LIST_DEPLOYMENTS`

Lists deployments for a specified Bitbucket repository. Use when you need to view deployment history and status across environments.

### List issues in a repository

**Slug:** `BITBUCKET_LIST_ISSUES`

Lists issues in a Bitbucket repository with optional filtering by state, priority, kind, or assignee. Use when you need to discover issue IDs or get an overview of repository issues.

### List pipelines

**Slug:** `BITBUCKET_LIST_PIPELINES`

Tool to find pipelines in a Bitbucket repository. Returns pipeline metadata including state, trigger, and duration. Use when you need to browse pipeline history or check pipeline status.

### List pull requests

**Slug:** `BITBUCKET_LIST_PULL_REQUESTS`

Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).

### List pull request tasks

**Slug:** `BITBUCKET_LIST_PULL_REQUEST_TASKS`

Lists all tasks associated with a pull request in a Bitbucket repository. Use when you need to view or track tasks on a PR.

### List all public repositories

**Slug:** `BITBUCKET_LIST_REPOSITORIES`

Retrieves a paginated list of all public repositories on Bitbucket. Use when you need to discover or search across public repositories, optionally filtered by role, query string, creation date, or sorted by various fields.

### List repository environments

**Slug:** `BITBUCKET_LIST_REPOSITORIES_ENVIRONMENTS`

List all deployment environments configured for a Bitbucket repository. Use when you need to view available environments for deployments, check environment configurations, or select an environment for deployment operations.

### List repositories in workspace

**Slug:** `BITBUCKET_LIST_REPOSITORIES_IN_WORKSPACE`

Lists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results. Responses are paginated; iterate using the `next` field in each response until it is absent to retrieve all repositories.

### List repository paths

**Slug:** `BITBUCKET_LIST_REPOSITORY_PATHS`

Lists file and directory entries under a repository path at a given revision, with optional breadth-first recursion via max_depth for repository traversal and scanning. Fails if the path points to a file rather than a directory.

### List snippets

**Slug:** `BITBUCKET_LIST_SNIPPETS`

Returns all snippets accessible to the authenticated user. Use when you need to discover or list snippets, optionally filtered by role (owner, contributor, or member).

### List tags

**Slug:** `BITBUCKET_LIST_TAGS`

Lists tags in a Bitbucket repository with optional server-side filtering by name pattern or commit hash (BBQL) and sorting. Use when you need to discover available tags, search for specific tag patterns, or find tags pointing to specific commits.

### List versions

**Slug:** `BITBUCKET_LIST_VERSIONS`

Lists versions (milestones) in a Bitbucket repository's issue tracker. Use when you need to discover available versions for associating with issues, or to retrieve version IDs for use with create_issue.

### List workspace members

**Slug:** `BITBUCKET_LIST_WORKSPACE_MEMBERS`

Lists all members of a specified Bitbucket workspace; the workspace must exist.

### List workspace projects

**Slug:** `BITBUCKET_LIST_WORKSPACE_PROJECTS`

Lists projects in a specified Bitbucket workspace. Use when you need to retrieve all projects belonging to a workspace.

### List workspaces

**Slug:** `BITBUCKET_LIST_WORKSPACES`

Lists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted. Results are paginated; follow the `next` field in each response to retrieve subsequent pages until `next` is absent. When multiple workspaces are returned, verify the correct `slug` or UUID before passing to downstream tools.

### Merge Pull Request

**Slug:** `BITBUCKET_MERGE_PULL_REQUEST`

Tool to merge a Bitbucket Cloud pull request via the REST API. Use when you need to complete a PR merge after approval and checks pass. Supports custom merge messages, merge strategies, and source branch deletion.

### Request Pull Request Changes

**Slug:** `BITBUCKET_REQUEST_PULL_REQUEST_CHANGES`

Tool to request changes on a pull request as the authenticated user. Use when you need to formally request changes in a pull request review process, indicating the PR needs modifications before approval.

### Resolve pull request comment

**Slug:** `BITBUCKET_RESOLVE_PULL_REQUEST_COMMENT`

Tool to resolve or reopen a pull request comment thread. Use when marking a comment as addressed during review or reopening a previously resolved thread.

### Search code in team repositories

**Slug:** `BITBUCKET_SEARCH_TEAM_CODE`

Search for code in repositories of a specified team. Matches can occur in file content or paths. Note: Teams endpoints were deprecated in Oct 2020; use workspace search endpoints for new integrations.

### Search code in user repositories

**Slug:** `BITBUCKET_SEARCH_USER_REPOSITORIES_CODE`

Tool to search for code in the repositories of a specified user. Use when you need to find specific code patterns, functions, or text across all repositories owned by a user.

### Update commit insight report

**Slug:** `BITBUCKET_UPDATE_INSIGHTS_PROJECTS_REPOS_COMMITS_REPORTS`

Create or update an insight report for a commit. Creates a new report if it doesn't exist, or replaces the existing one if a report already exists for the given repository, commit, and report key. Note: replacing an existing report will be rejected if the authenticated user was not the creator of the specified report.

### Update an issue

**Slug:** `BITBUCKET_UPDATE_ISSUE`

Updates an existing issue in a Bitbucket repository by modifying specified attributes; requires `workspace`, `repo_slug`, `issue_id`, and at least one attribute to update.

### Update Pull Request

**Slug:** `BITBUCKET_UPDATE_PULL_REQUEST`

Tool to update an existing pull request's editable fields (e.g., title, description, reviewers) via the Bitbucket Cloud API. Use when you need to modify a pull request without creating a new one. Only sends fields that are explicitly provided to avoid accidental overwrites.

### Update commit comment

**Slug:** `BITBUCKET_UPDATE_REPOSITORIES_COMMIT_COMMENTS`

Updates the contents of a comment on a commit. Use when you need to modify an existing comment's text on a commit.

### Update commit report annotation

**Slug:** `BITBUCKET_UPDATE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS`

Creates or updates an individual annotation for a commit report. Use when you need to add or modify code analysis findings (vulnerabilities, code smells, or bugs) identified in a commit.

### Update team pipeline variable

**Slug:** `BITBUCKET_UPDATE_TEAMS_PIPELINES_CONFIG_VARIABLES`

Updates a team-level pipeline configuration variable in Bitbucket. Use when you need to modify existing environment variables or configuration values that are available to all pipelines within a team.

### Update user pipeline variable

**Slug:** `BITBUCKET_UPDATE_USERS_PIPELINES_CONFIG_VARIABLES`

Updates a user-level pipeline variable for Bitbucket pipelines. Use when you need to modify account-level configuration variables such as changing the value, key name, or security status.
