Connect Bitbucket with Hookshot™ and your stack

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

Tools and triggers

What Agents can do in Bitbucket

Available tools and events after Bitbucket is connected.

  • 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

    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…

  • Check If User Voted for Issue

    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.

  • Create a 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 a 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 an 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

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

  • Create Commit Report 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.

  • 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…

  • 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

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

  • Create Team Pipeline Variable

    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

    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.

  • Decline Pull Request

    Decline a Bitbucket Cloud pull request via the REST API. Use this action when you need to reject a pull request that should not be merged. This action is irreversible — once declined, the pull request cannot be…

  • Delete Commit Comment

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

  • Delete Commit Report Annotation

    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 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

    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 Repository

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

  • Delete Snippet Watch

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

  • 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

    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

    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

    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…

Setup

Connect Bitbucket in Hookshot™

Pick a scope, then confirm what can start a Protege and what it can do.

Trigger Access

What can start a Protege from this app.

Tool Access

What a Protege can do after it starts.

Connection scope

Prefer team for production.

Team

Shared credential for production and unattended runs.

Personal

Tied to one user—only when the workflow needs their account.

Chat

Team-scoped for supported chat surfaces.

Full setup guide

Build with us

See Hookshot™ in your stack.

Request early access or book a live walkthrough with the team.

Request Demo
Hookshot™ setup screen — AI agent workflow configuration with model selection, trigger status, and governance controls.