> **Building with AI coding agents?** If you're using an AI coding agent, install the official Scalekit plugin. It gives your agent full awareness of the Scalekit API — reducing hallucinations and enabling faster, more accurate code generation.
>
> - **Claude Code**: `/plugin marketplace add scalekit-inc/claude-code-authstack` then `/plugin install <auth-type>@scalekit-auth-stack`
> - **GitHub Copilot CLI**: `copilot plugin marketplace add scalekit-inc/github-copilot-authstack` then `copilot plugin install <auth-type>@scalekit-auth-stack`
> - **Codex**: run the bash installer, restart, then open Plugin Directory and enable `<auth-type>`
> - **Skills CLI** (Windsurf, Cline, 40+ agents): `npx skills add scalekit-inc/skills --list` then `--skill <skill-name>`
>
> `<auth-type>` / `<skill-name>`: `agentkit`, `full-stack-auth`, `mcp-auth`, `modular-sso`, `modular-scim` — [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Bitbucket

**Authentication:** OAuth 2.0
**Categories:** Development, Version Control, Collaboration, Ci Cd
## What you can do

Connect this agent connector to let your agent:

- **Get commit comment, workspace, merge base** — Returns a specific comment on a commit
- **Search workspace** — Searches for code across all repositories in a workspace
- **Delete workspace pipeline variable, deploy key, repository permission user** — Deletes a workspace pipeline variable
- **Create tag, environment, commit build status** — Creates a new tag in a Bitbucket repository pointing to a specific commit
- **Update pull request task, deployment variable, commit build status** — Updates a task on a pull request (e.g
- **Unwatch issue** — Stops watching an issue

## Authentication

This connector uses **OAuth 2.0**. Scalekit acts as the OAuth client: it redirects your user to Bitbucket, obtains an access token, and automatically refreshes it before it expires. Your agent code never handles tokens directly — you only pass a `connectionName` and a user `identifier`.

You supply your Bitbucket **Connected App** credentials (Client ID + Secret) once per environment in the Scalekit dashboard.

Before calling this connector from your code, create the Bitbucket connection in **AgentKit** > **Connections** and copy the exact **Connection name** from that connection into your code. The value in code must match the dashboard exactly.

## Set up the connector

Register your Bitbucket OAuth consumer credentials with Scalekit so it can manage the OAuth 2.0 authentication flow and token lifecycle on your behalf. You'll need a **Key** (Client ID) and **Secret** (Client Secret) from your Bitbucket workspace settings.

1. ### Open OAuth consumers in your Bitbucket workspace

   - Go to **Bitbucket** and open your workspace by clicking your avatar in the top-right corner and selecting the workspace you want to use.

   - In the left sidebar, click **Settings** → **OAuth consumers**.

     <img src={bitbucketWorkspaceOauthImg.src} alt="Bitbucket workspace settings showing OAuth consumers page" width="540" />

   - Click **Add consumer** to create a new OAuth application.

2. ### Create the OAuth consumer

   - Fill in the consumer details:
     - **Name** — enter a descriptive name (e.g., `Scalekit-Agent`)
     - **Description** — optional description
     - **URL** — your application's homepage URL

   - Leave the **Callback URL** field empty for now — you'll fill it in after getting the redirect URI from Scalekit.

     <img src={addOauthConsumerImg.src} alt="Bitbucket Add OAuth consumer form" width="540" />

   - Under **Permissions**, select the scopes your agent needs. Recommended minimum:

     | Permission | Scope | Required for |
     | --- | --- | --- |
     | Account | Read | User profile access |
     | Repositories | Read | Read code and metadata |
     | Repositories | Write | Create branches, push commits |
     | Pull requests | Read | Read PR data |
     | Pull requests | Write | Create, approve, and merge PRs |
     | Pipelines | Read | View pipeline runs |
     | Pipelines | Write | Trigger pipelines |

   - Click **Save** to create the consumer.

3. ### Get the redirect URI from Scalekit

   - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** > **Create Connection**. Search for **Bitbucket** and click **Create**.

     <img src={scalekitSearchBitbucketImg.src} alt="Searching for Bitbucket in the Scalekit Create Connection panel" width="540" />

   - Copy the **Redirect URI** shown in the connection configuration panel. It looks like `https:///sso/v1/oauth//callback`.

     <img src={configureBitbucketConnectionImg.src} alt="Scalekit Configure Bitbucket Connection panel showing Redirect URI, Client Key, and Client Secret fields" width="540" />

4. ### Add the callback URL in Bitbucket

   - Back in Bitbucket, open your OAuth consumer and click **Edit**.

   - Paste the Scalekit Redirect URI into the **Callback URL** field.

   - Click **Save** to apply the change.

     <img src={bitbucketCallbackUrlImg.src} alt="Bitbucket Edit OAuth consumer with Scalekit callback URL added to the Callback URL field" width="540" />

   > caution: Callback URL must match exactly
>
> Bitbucket performs an exact string match on the callback URL. Any mismatch — including a trailing slash — will cause the OAuth flow to fail. Make sure you paste the URL exactly as shown in Scalekit.

5. ### Copy your OAuth credentials

   - In Bitbucket, go back to **Workspace settings** → **OAuth consumers** and click on your consumer name to expand it.

   - The **Key** and **Secret** will be shown. Click **Reveal** next to the secret to display it.

     <img src={oauthConsumerCredentialsImg.src} alt="Bitbucket OAuth consumer expanded showing Key and Secret with Reveal button" width="540" />

   - Copy both values. The secret is not stored by Bitbucket after you leave this page — save it securely.

6. ### Add credentials in Scalekit

   - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** and open the Bitbucket connection you created.

   - Enter your credentials:
     - **Client Key** — the Key from your Bitbucket OAuth consumer
     - **Client Secret** — the Secret from your Bitbucket OAuth consumer
     - **Scopes** — select the scopes that match the permissions you granted in step 2

   - Click **Save**.

   > tip: Request only the scopes you need
>
> Bitbucket displays the requested scopes on the user consent screen. Request only the minimum scopes your agent requires — this builds user trust and reduces the attack surface if a token is compromised.

## Code examples

Connect a user's Bitbucket account and make API calls on their behalf — Scalekit handles OAuth 2.0, token storage, and refresh automatically.

You can interact with Bitbucket in two ways — via direct proxy API calls or via Scalekit optimized tool calls. Scroll down to see the list of available Scalekit tools.

## Proxy API calls

  ### Node.js

```typescript

const connectionName = 'bitbucket'; // get your connection name from connection configurations
const identifier = 'user_123';      // your unique user identifier

// Get your credentials from app.scalekit.com → Developers → Settings → API Credentials
const scalekit = new ScalekitClient(
  process.env.SCALEKIT_ENV_URL,
  process.env.SCALEKIT_CLIENT_ID,
  process.env.SCALEKIT_CLIENT_SECRET
);
const actions = scalekit.actions;

// Authenticate the user — send this link to your user
const { link } = await actions.getAuthorizationLink({
  connectionName,
  identifier,
});
console.log('Authorize Bitbucket:', link);
process.stdout.write('Press Enter after authorizing...');
await new Promise(r => process.stdin.once('data', r));

// Fetch the authenticated user's Bitbucket profile via Scalekit proxy
const user = await actions.request({
  connectionName,
  identifier,
  path: '/2.0/user',
  method: 'GET',
});
console.log(user);
```

  ### Python

```python

from dotenv import load_dotenv
load_dotenv()

connection_name = "bitbucket"  # get your connection name from connection configurations
identifier = "user_123"        # your unique user identifier

# Get your credentials from app.scalekit.com → Developers → Settings → API Credentials
scalekit_client = scalekit.client.ScalekitClient(
    client_id=os.getenv("SCALEKIT_CLIENT_ID"),
    client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
    env_url=os.getenv("SCALEKIT_ENV_URL"),
)
actions = scalekit_client.actions

# Authenticate the user — present this link to your user
link_response = actions.get_authorization_link(
    connection_name=connection_name,
    identifier=identifier
)
print("Authorize Bitbucket:", link_response.link)
input("Press Enter after authorizing...")

# Fetch the authenticated user's Bitbucket profile via Scalekit proxy
user = actions.request(
    connection_name=connection_name,
    identifier=identifier,
    path="/2.0/user",
    method="GET"
)
print(user)
```

## Scalekit tools

## Tool list

Use the exact tool names from the **Tool list** below when you call `execute_tool`. If you're not sure which name to use, list the tools available for the current user first.

## Tool list

### `bitbucket_branch_create`

Creates a new branch in a Bitbucket repository from a specified commit hash or branch.

Parameters:

- `name` (`string`, required): Name for the new branch.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `target_hash` (`string`, required): The commit hash to create the branch from.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branch_delete`

Deletes a branch from a Bitbucket repository.

Parameters:

- `name` (`string`, required): The branch name to delete.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branch_get`

Returns details of a specific branch in a Bitbucket repository.

Parameters:

- `name` (`string`, required): The branch name.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branch_restriction_create`

Creates a branch permission rule for a repository.

Parameters:

- `kind` (`string`, required): Restriction type: require_tasks_to_be_completed, require_approvals_to_merge, require_default_reviewer_approvals_to_merge, require_no_changes_requested, require_commits_behind, require_passing_builds_to_merge, reset_pullrequest_approvals_on_change, push, restrict_merges, force, delete, enforce_merge_checks.
- `pattern` (`string`, required): Branch name or glob pattern to restrict, e.g. 'main' or 'release/*'.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `groups` (`string`, optional): List of group slugs to exempt from the restriction.
- `users` (`string`, optional): List of user account IDs to exempt from the restriction.
- `value` (`string`, optional): Numeric value for count-based restrictions (e.g. required approvals).

### `bitbucket_branch_restriction_delete`

Deletes a branch permission rule.

Parameters:

- `id` (`string`, required): The numeric ID of the branch restriction.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branch_restriction_get`

Returns a specific branch permission rule by ID.

Parameters:

- `id` (`string`, required): The numeric ID of the branch restriction.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branch_restriction_update`

Updates a branch permission rule.

Parameters:

- `id` (`string`, required): The numeric ID of the branch restriction.
- `kind` (`string`, required): Restriction type (see Create Branch Restriction for valid values).
- `pattern` (`string`, required): Branch name or glob pattern.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `value` (`string`, optional): Numeric value for count-based restrictions.

### `bitbucket_branch_restrictions_list`

Lists branch permission rules for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branches_list`

Returns all branches in a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `q` (`string`, optional): Query to filter branches, e.g. name~"feature".
- `sort` (`string`, optional): Sort field, e.g. -target.date for newest first.

### `bitbucket_branching_model_get`

Returns the effective branching model for a repository (e.g. Gitflow config).

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branching_model_settings_get`

Returns the branching model configuration settings for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_branching_model_settings_update`

Updates the branching model configuration settings for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `development_branch` (`string`, optional): Name of the development branch.
- `production_branch` (`string`, optional): Name of the production branch.

### `bitbucket_commit_approve`

Approves a specific commit in a Bitbucket repository.

Parameters:

- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_build_status_create`

Creates or updates a build status for a specific commit (used to report CI/CD results).

Parameters:

- `commit` (`string`, required): The commit hash.
- `key` (`string`, required): Unique identifier for the build (e.g. CI pipeline name).
- `repo_slug` (`string`, required): The repository slug or UUID.
- `state` (`string`, required): Build state: SUCCESSFUL, FAILED, INPROGRESS, STOPPED.
- `url` (`string`, required): URL linking to the build result.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): Description of the build result.
- `name` (`string`, optional): Display name for the build.

### `bitbucket_commit_build_status_get`

Returns the build status for a specific commit and build key.

Parameters:

- `commit` (`string`, required): The commit hash.
- `key` (`string`, required): Unique identifier for the build.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_build_status_update`

Updates an existing build status for a specific commit and key.

Parameters:

- `commit` (`string`, required): The commit hash.
- `key` (`string`, required): Unique identifier for the build.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `state` (`string`, required): Build state: SUCCESSFUL, FAILED, INPROGRESS, STOPPED.
- `url` (`string`, required): URL linking to the build result.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): Description of the build result.
- `name` (`string`, optional): Display name for the build.

### `bitbucket_commit_comment_create`

Creates a new comment on a specific commit in a Bitbucket repository.

Parameters:

- `commit` (`string`, required): The commit hash.
- `content` (`string`, required): The comment text (Markdown supported).
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_comment_delete`

Deletes a specific comment on a commit.

Parameters:

- `comment_id` (`string`, required): The numeric ID of the comment.
- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_comment_get`

Returns a specific comment on a commit.

Parameters:

- `comment_id` (`string`, required): The numeric ID of the comment.
- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_comment_update`

Updates an existing comment on a commit.

Parameters:

- `comment_id` (`string`, required): The numeric ID of the comment.
- `commit` (`string`, required): The commit hash.
- `content` (`string`, required): Updated comment text (Markdown supported).
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_comments_list`

Lists all comments on a specific commit in a Bitbucket repository.

Parameters:

- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_get`

Returns details of a specific commit including author, message, date, and diff stats.

Parameters:

- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_statuses_list`

Lists all statuses (build results) for a specific commit.

Parameters:

- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commit_unapprove`

Removes an approval from a specific commit.

Parameters:

- `commit` (`string`, required): The commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_commits_list`

Returns a list of commits for a repository, optionally filtered by branch.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `branch` (`string`, optional): Branch or tag name to list commits for.

### `bitbucket_component_get`

Returns a specific component by ID from the issue tracker.

Parameters:

- `component_id` (`string`, required): The numeric ID of the component.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_components_list`

Lists all components defined for a repository's issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_default_reviewer_add`

Adds a user as a default reviewer for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_default_reviewer_get`

Checks if a user is a default reviewer for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_default_reviewer_remove`

Removes a user from the default reviewers for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_default_reviewers_list`

Lists all default reviewers for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deploy_key_create`

Adds a new deploy key (SSH public key) to a Bitbucket repository for read-only or read-write access.

Parameters:

- `key` (`string`, required): The SSH public key string.
- `label` (`string`, required): A human-readable label for the deploy key.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deploy_key_delete`

Removes a deploy key from a Bitbucket repository.

Parameters:

- `key_id` (`integer`, required): The integer ID of the deploy key to delete.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deploy_keys_list`

Returns a list of deploy keys (SSH keys) configured on a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deployment_get`

Returns a specific deployment by UUID.

Parameters:

- `deployment_uuid` (`string`, required): The UUID of the deployment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deployment_variable_create`

Creates a new variable for a deployment environment.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `key` (`string`, required): Variable name.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `value` (`string`, required): Variable value.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`string`, optional): Whether the variable is secret (masked in logs).

### `bitbucket_deployment_variable_delete`

Deletes a variable from a deployment environment.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `variable_uuid` (`string`, required): The UUID of the variable.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deployment_variable_update`

Updates an existing variable for a deployment environment.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `key` (`string`, required): Variable name.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `value` (`string`, required): Variable value.
- `variable_uuid` (`string`, required): The UUID of the variable.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`string`, optional): Whether the variable is secret.

### `bitbucket_deployment_variables_list`

Lists all variables for a deployment environment.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_deployments_list`

Lists all deployments for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_diff_get`

Returns a JSON summary of file changes (diffstat) for a given commit spec (e.g. commit hash, branch..branch). Shows which files were added, modified, or deleted with line counts.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `spec` (`string`, required): Diff spec in the form of 'hash1..hash2' or 'branch1..branch2'.
- `workspace` (`string`, required): The workspace slug or UUID.
- `path` (`string`, optional): Limit diff to a specific file path.

### `bitbucket_diffstat_get`

Returns the diff stats between two commits or a branch/commit spec in a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `spec` (`string`, required): Revision spec e.g. 'main..feature' or commit SHA.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_download_delete`

Deletes a specific download artifact from a repository.

Parameters:

- `filename` (`string`, required): The filename of the download artifact.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_downloads_list`

Lists all download artifacts for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_environment_create`

Creates a new deployment environment for a repository.

Parameters:

- `environment_type` (`string`, required): Type: Test, Staging, or Production.
- `name` (`string`, required): Name of the environment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_environment_delete`

Deletes a deployment environment by UUID.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_environment_get`

Returns a specific deployment environment by UUID.

Parameters:

- `environment_uuid` (`string`, required): The UUID of the environment.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_environments_list`

Lists all deployment environments for a repository (e.g. Test, Staging, Production).

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_file_history_list`

Lists the commits that modified a specific file path.

Parameters:

- `commit` (`string`, required): The commit hash or branch name.
- `path` (`string`, required): Path to the file in the repository.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_comment_create`

Posts a new comment on a Bitbucket issue.

Parameters:

- `content` (`string`, required): The comment text (Markdown supported).
- `issue_id` (`integer`, required): The issue ID to comment on.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_comment_delete`

Deletes a specific comment on an issue.

Parameters:

- `comment_id` (`string`, required): The numeric ID of the comment.
- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_comment_update`

Updates an existing comment on an issue.

Parameters:

- `comment_id` (`string`, required): The numeric ID of the comment.
- `content` (`string`, required): Updated comment text (Markdown).
- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_comments_list`

Returns all comments on a Bitbucket issue.

Parameters:

- `issue_id` (`integer`, required): The issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_create`

Creates a new issue in a Bitbucket repository's issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `title` (`string`, required): Title of the issue.
- `workspace` (`string`, required): The workspace slug or UUID.
- `assignee_account_id` (`string`, optional): Account ID of the assignee.
- `content` (`string`, optional): Description/body of the issue (Markdown supported).
- `kind` (`string`, optional): Issue kind: bug, enhancement, proposal, or task.
- `priority` (`string`, optional): Priority: trivial, minor, major, critical, or blocker.

### `bitbucket_issue_delete`

Deletes an issue from a Bitbucket repository's issue tracker.

Parameters:

- `issue_id` (`integer`, required): The issue ID to delete.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_get`

Returns details of a specific issue in a Bitbucket repository.

Parameters:

- `issue_id` (`integer`, required): The issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_unvote`

Removes a vote from an issue.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_unwatch`

Stops watching an issue.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_update`

Updates an existing issue in a Bitbucket repository.

Parameters:

- `issue_id` (`integer`, required): The issue ID to update.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `content` (`string`, optional): New content/body for the issue.
- `kind` (`string`, optional): Issue kind: bug, enhancement, proposal, or task.
- `priority` (`string`, optional): Priority: trivial, minor, major, critical, or blocker.
- `status` (`string`, optional): Issue status: new, open, resolved, on hold, invalid, duplicate, or wontfix.
- `title` (`string`, optional): New title for the issue.

### `bitbucket_issue_vote`

Casts a vote for an issue.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_vote_get`

Checks if the authenticated user has voted for an issue.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_watch`

Starts watching an issue to receive notifications.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issue_watch_get`

Checks if the authenticated user is watching an issue.

Parameters:

- `issue_id` (`string`, required): The numeric issue ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_issues_list`

Returns all issues in a Bitbucket repository's issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `q` (`string`, optional): Filter query, e.g. status="open" AND priority="major".
- `sort` (`string`, optional): Sort field, e.g. -updated_on.

### `bitbucket_merge_base_get`

Returns the common ancestor (merge base) between two commits.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `revspec` (`string`, required): Two commits separated by '..', e.g. 'abc123..def456'.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_milestone_get`

Returns a specific milestone by ID from the issue tracker.

Parameters:

- `milestone_id` (`string`, required): The numeric ID of the milestone.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_milestones_list`

Lists all milestones defined for a repository's issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_get`

Returns details of a specific Bitbucket pipeline run by its UUID.

Parameters:

- `pipeline_uuid` (`string`, required): The pipeline UUID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_schedule_create`

Creates a new pipeline schedule for a repository.

Parameters:

- `branch` (`string`, required): Branch to run the pipeline on.
- `cron_expression` (`string`, required): Cron schedule expression (e.g. '0 0 * * *' for daily midnight).
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `enabled` (`string`, optional): Whether the schedule is active.

### `bitbucket_pipeline_schedule_delete`

Deletes a pipeline schedule.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `schedule_uuid` (`string`, required): The UUID of the schedule.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_schedule_get`

Returns a specific pipeline schedule by UUID.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `schedule_uuid` (`string`, required): The UUID of the schedule.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_schedule_update`

Updates a pipeline schedule.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `schedule_uuid` (`string`, required): The UUID of the schedule.
- `workspace` (`string`, required): The workspace slug or UUID.
- `cron_expression` (`string`, optional): Updated cron expression.
- `enabled` (`string`, optional): Whether the schedule is active.

### `bitbucket_pipeline_schedules_list`

Lists all pipeline schedules for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_step_log_get`

Retrieves the log output for a specific step of a Bitbucket pipeline run.

Parameters:

- `pipeline_uuid` (`string`, required): The UUID of the pipeline.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `step_uuid` (`string`, required): The UUID of the pipeline step.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_steps_list`

Returns a list of steps for a specific Bitbucket pipeline run.

Parameters:

- `pipeline_uuid` (`string`, required): The UUID of the pipeline.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_stop`

Stops a running Bitbucket pipeline by sending a stop request to the specified pipeline UUID.

Parameters:

- `pipeline_uuid` (`string`, required): The UUID of the pipeline to stop.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_trigger`

Triggers a new Bitbucket pipeline run for a specific branch, tag, or commit.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `branch` (`string`, optional): Branch name to run the pipeline on.
- `commit_hash` (`string`, optional): Specific commit hash to run the pipeline on.
- `pipeline_name` (`string`, optional): Custom pipeline name defined in bitbucket-pipelines.yml.
- `variables` (`string`, optional): JSON array of pipeline variables, e.g. [{"key":"ENV","value":"prod"}].

### `bitbucket_pipeline_variable_create`

Creates a new pipeline variable for a Bitbucket repository.

Parameters:

- `key` (`string`, required): The variable name/key.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `value` (`string`, required): The variable value.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`boolean`, optional): If true, the variable value is masked in logs.

### `bitbucket_pipeline_variable_delete`

Deletes a pipeline variable from a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `variable_uuid` (`string`, required): The UUID of the pipeline variable to delete.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipeline_variable_update`

Updates an existing pipeline variable for a Bitbucket repository.

Parameters:

- `key` (`string`, required): The new variable name/key.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `value` (`string`, required): The new variable value.
- `variable_uuid` (`string`, required): The UUID of the pipeline variable to update.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`boolean`, optional): If true, the variable value is masked in logs.

### `bitbucket_pipeline_variables_list`

Returns a list of pipeline variables defined for the repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pipelines_list`

Returns pipeline runs for a Bitbucket repository, optionally filtered by status or branch.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `sort` (`string`, optional): Sort field, e.g. -created_on for newest first.

### `bitbucket_pull_request_activity_list`

Lists all activity (comments, approvals, updates) for a specific pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_approve`

Approves a pull request on behalf of the authenticated user.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID to approve.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_comment_create`

Posts a new comment on a pull request.

Parameters:

- `content` (`string`, required): The comment text (Markdown supported).
- `pull_request_id` (`integer`, required): The pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_comment_delete`

Deletes a comment from a pull request.

Parameters:

- `comment_id` (`integer`, required): The comment ID to delete.
- `pull_request_id` (`integer`, required): The pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_comments_list`

Returns all comments on a pull request.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_commits_list`

Returns all commits included in a pull request.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_create`

Creates a new pull request in a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `source_branch` (`string`, required): Source branch name.
- `title` (`string`, required): Title of the pull request.
- `workspace` (`string`, required): The workspace slug or UUID.
- `close_source_branch` (`boolean`, optional): Whether to close the source branch after merge.
- `description` (`string`, optional): Description of the pull request.
- `destination_branch` (`string`, optional): Destination branch to merge into.
- `reviewers` (`string`, optional): JSON array of reviewer account UUIDs, e.g. [{"uuid":"{account-uuid}"}].

### `bitbucket_pull_request_decline`

Declines (rejects) an open pull request in a Bitbucket repository.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID to decline.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_diffstat_get`

Returns a JSON diffstat for a pull request given the source and destination commit hashes. Get these from bitbucket_pull_request_get (source.commit.hash and destination.commit.hash).

Parameters:

- `dest_commit` (`string`, required): Destination commit hash from the pull request (destination.commit.hash).
- `repo_slug` (`string`, required): The repository slug or UUID.
- `source_commit` (`string`, required): Source commit hash from the pull request (source.commit.hash).
- `workspace` (`string`, required): The workspace slug or UUID.
- `pull_request_id` (`string`, optional): The numeric pull request ID.

### `bitbucket_pull_request_get`

Returns details of a specific pull request including title, description, source/destination branches, state, and reviewers.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_merge`

Merges a pull request in a Bitbucket repository.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID to merge.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `close_source_branch` (`boolean`, optional): Whether to close the source branch after merge.
- `merge_strategy` (`string`, optional): Merge strategy: merge_commit, squash, or fast_forward.
- `message` (`string`, optional): Custom commit message for the merge commit.

### `bitbucket_pull_request_remove_request_changes`

Removes a change request from a pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_request_changes`

Requests changes on a pull request, blocking it from merging until changes are addressed.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_statuses_list`

Lists all commit statuses for the commits in a pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_task_create`

Creates a new task on a pull request.

Parameters:

- `content` (`string`, required): The task description.
- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `pending` (`string`, optional): Whether the task is pending (true) or resolved (false).

### `bitbucket_pull_request_task_delete`

Deletes a task from a pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `task_id` (`string`, required): The numeric task ID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_task_get`

Returns a specific task on a pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `task_id` (`string`, required): The numeric task ID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_task_update`

Updates a task on a pull request (e.g. resolve/reopen or change content).

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `task_id` (`string`, required): The numeric task ID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `content` (`string`, optional): Updated task description.
- `pending` (`string`, optional): Set to false to resolve the task, true to reopen.

### `bitbucket_pull_request_tasks_list`

Lists all tasks on a pull request.

Parameters:

- `pull_request_id` (`string`, required): The numeric pull request ID.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_unapprove`

Removes the authenticated user's approval from a pull request.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID to unapprove.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_request_update`

Updates a pull request's title, description, reviewers, or destination branch.

Parameters:

- `pull_request_id` (`integer`, required): The pull request ID to update.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): New description for the pull request.
- `destination_branch` (`string`, optional): New destination branch.
- `title` (`string`, optional): New title for the pull request.

### `bitbucket_pull_requests_activity_list`

Lists overall activity for all pull requests in a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_pull_requests_list`

Returns pull requests for a Bitbucket repository, filterable by state.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `q` (`string`, optional): Query to filter pull requests.
- `sort` (`string`, optional): Sort field for pull requests.
- `state` (`string`, optional): Filter by state: OPEN, MERGED, DECLINED, SUPERSEDED.

### `bitbucket_refs_list`

Lists all branches and tags (refs) for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repositories_list`

Returns all repositories in a Bitbucket workspace.

Parameters:

- `workspace` (`string`, required): The workspace slug or UUID.
- `q` (`string`, optional): Query to filter repositories, e.g. name~"my-repo".
- `sort` (`string`, optional): Sort field, e.g. -updated_on for newest first.

### `bitbucket_repository_create`

Creates a new Bitbucket repository in the specified workspace.

Parameters:

- `repo_slug` (`string`, required): The slug for the new repository.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): A description for the repository.
- `has_issues` (`boolean`, optional): Enable the issue tracker for this repository.
- `has_wiki` (`boolean`, optional): Enable the wiki for this repository.
- `is_private` (`boolean`, optional): Whether the repository is private. Default is true.
- `project_key` (`string`, optional): Key of the project to associate the repository with.
- `scm` (`string`, optional): Source control type: git or hg. Default is git.

### `bitbucket_repository_delete`

Permanently deletes a Bitbucket repository and all its data.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_fork`

Forks a Bitbucket repository into the authenticated user's workspace or a specified workspace.

Parameters:

- `repo_slug` (`string`, required): The repository slug to fork.
- `workspace` (`string`, required): The workspace slug of the source repository.
- `is_private` (`boolean`, optional): Whether the fork should be private.
- `name` (`string`, optional): Name for the forked repository. Defaults to the source name.
- `workspace_destination` (`string`, optional): Workspace to fork into. Defaults to the authenticated user's workspace.

### `bitbucket_repository_get`

Returns details of a specific Bitbucket repository including description, language, size, and clone URLs.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_group_delete`

Removes a group's explicit permission from a repository.

Parameters:

- `group_slug` (`string`, required): The group slug.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_group_get`

Returns the explicit repository permission for a specific group.

Parameters:

- `group_slug` (`string`, required): The group slug.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_group_update`

Sets the explicit permission for a group on a repository.

Parameters:

- `group_slug` (`string`, required): The group slug.
- `permission` (`string`, required): Permission level: read, write, or admin.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_user_delete`

Removes a user's explicit permission from a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_user_get`

Returns the explicit repository permission for a specific user.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permission_user_update`

Sets the explicit permission for a user on a repository.

Parameters:

- `permission` (`string`, required): Permission level: read, write, or admin.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `username` (`string`, required): The user's account ID or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permissions_groups_list`

Lists all explicit group permissions for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_permissions_users_list`

Lists all explicit user permissions for a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_repository_update`

Updates a Bitbucket repository's description, privacy, or other settings.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): New description for the repository.
- `has_issues` (`boolean`, optional): Enable or disable the issue tracker.
- `has_wiki` (`boolean`, optional): Enable or disable the wiki.
- `is_private` (`boolean`, optional): Whether the repository should be private.

### `bitbucket_repository_watchers_list`

Lists all users watching a repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_src_get`

Retrieves metadata (size, type, mimetype, last commit) for a file or directory in a Bitbucket repository at a specific commit. Returns JSON metadata via format=meta.

Parameters:

- `commit` (`string`, required): Branch name, tag, or commit hash.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `path` (`string`, optional): Path to the file or directory within the repository.

### `bitbucket_tag_create`

Creates a new tag in a Bitbucket repository pointing to a specific commit.

Parameters:

- `name` (`string`, required): Name for the new tag.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `target_hash` (`string`, required): The commit hash to tag.
- `workspace` (`string`, required): The workspace slug or UUID.
- `message` (`string`, optional): Optional message for an annotated tag.

### `bitbucket_tag_delete`

Deletes a tag from a Bitbucket repository.

Parameters:

- `name` (`string`, required): The tag name to delete.
- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_tags_list`

Returns all tags in a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.
- `q` (`string`, optional): Filter query for tags.
- `sort` (`string`, optional): Sort field.

### `bitbucket_user_emails_list`

Returns all email addresses associated with the authenticated Bitbucket user.

### `bitbucket_user_get`

Returns the authenticated user's Bitbucket profile including display name, account ID, and account links.

### `bitbucket_version_get`

Returns a specific version by ID from the issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `version_id` (`string`, required): The numeric ID of the version.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_versions_list`

Lists all versions defined for a repository's issue tracker.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_webhook_create`

Creates a new webhook on a Bitbucket repository to receive event notifications at a specified URL.

Parameters:

- `events` (`string`, required): JSON array of event types to subscribe to, e.g. ["repo:push","pullrequest:created"].
- `repo_slug` (`string`, required): The repository slug or UUID.
- `url` (`string`, required): The URL to receive webhook payloads.
- `workspace` (`string`, required): The workspace slug or UUID.
- `active` (`boolean`, optional): Whether the webhook is active.
- `description` (`string`, optional): A human-readable description of the webhook.
- `secret` (`string`, optional): Secret string used to compute the HMAC signature of webhook payloads.

### `bitbucket_webhook_delete`

Deletes a webhook from a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `uid` (`string`, required): The UID of the webhook to delete.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_webhook_get`

Returns the details of a specific webhook installed on a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `uid` (`string`, required): The UID of the webhook.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_webhook_update`

Updates an existing webhook on a Bitbucket repository, including its URL, events, and active status.

Parameters:

- `events` (`string`, required): JSON array of event types to subscribe to, e.g. ["repo:push","pullrequest:created"].
- `repo_slug` (`string`, required): The repository slug or UUID.
- `uid` (`string`, required): The UID of the webhook to update.
- `url` (`string`, required): The new URL to receive webhook payloads.
- `workspace` (`string`, required): The workspace slug or UUID.
- `active` (`boolean`, optional): Whether the webhook is active.
- `description` (`string`, optional): A human-readable description of the webhook.

### `bitbucket_webhooks_list`

Returns a list of webhooks installed on a Bitbucket repository.

Parameters:

- `repo_slug` (`string`, required): The repository slug or UUID.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_get`

Returns details of a specific Bitbucket workspace by its slug.

Parameters:

- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_members_list`

Returns all members of a Bitbucket workspace.

Parameters:

- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_pipeline_variable_create`

Creates a new pipeline variable at the workspace level.

Parameters:

- `key` (`string`, required): Variable name.
- `value` (`string`, required): Variable value.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`string`, optional): Whether the variable is secret (masked in logs).

### `bitbucket_workspace_pipeline_variable_delete`

Deletes a workspace pipeline variable.

Parameters:

- `variable_uuid` (`string`, required): The UUID of the variable.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_pipeline_variable_get`

Returns a specific workspace pipeline variable by UUID.

Parameters:

- `variable_uuid` (`string`, required): The UUID of the variable.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_pipeline_variable_update`

Updates a workspace pipeline variable.

Parameters:

- `key` (`string`, required): Variable name.
- `value` (`string`, required): Variable value.
- `variable_uuid` (`string`, required): The UUID of the variable.
- `workspace` (`string`, required): The workspace slug or UUID.
- `secured` (`string`, optional): Whether the variable is secret.

### `bitbucket_workspace_pipeline_variables_list`

Lists all pipeline variables defined at the workspace level.

Parameters:

- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_project_create`

Creates a new project in a workspace.

Parameters:

- `key` (`string`, required): Unique key for the project (uppercase letters/numbers).
- `name` (`string`, required): Name of the project.
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): Description of the project.
- `is_private` (`string`, optional): Whether the project is private.

### `bitbucket_workspace_project_delete`

Deletes a project from a workspace.

Parameters:

- `project_key` (`string`, required): The project key.
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_project_get`

Returns a specific project from a workspace by project key.

Parameters:

- `project_key` (`string`, required): The project key (e.g. PROJ).
- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_project_update`

Updates an existing project in a workspace.

Parameters:

- `key` (`string`, required): The project key to set in the request body. To keep the existing key, pass the same value as project_key. To rename the key, pass the new key here.
- `name` (`string`, required): Updated name of the project.
- `project_key` (`string`, required): The current project key used in the URL path to identify which project to update (e.g. PROJ).
- `workspace` (`string`, required): The workspace slug or UUID.
- `description` (`string`, optional): Updated description.
- `is_private` (`string`, optional): Whether the project is private.

### `bitbucket_workspace_projects_list`

Lists all projects in a workspace.

Parameters:

- `workspace` (`string`, required): The workspace slug or UUID.

### `bitbucket_workspace_search_code`

Searches for code across all repositories in a workspace.

Parameters:

- `search_query` (`string`, required): Code search query string.
- `workspace` (`string`, required): The workspace slug or UUID.
- `page` (`integer`, optional): Page number for pagination.
- `pagelen` (`integer`, optional): Number of results per page (max 100).


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
