bitbucket-mcp
v3.7.4A Model Context Protocol server for Bitbucket with read-only operations
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bb_get_repository
Get detailed information about a specific repository
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_list_repositories
List repositories in a workspace
| Parameter | Type | Description |
|---|---|---|
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_list_workspaces
List all accessible workspaces for discovery and exploration
| Parameter | Type | Description |
|---|---|---|
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pull_requests
Get pull requests for a repository
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
state | string | Filter by pull request state |
bb_get_pull_request
Get detailed information about a specific pull request
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_pull_request_comments
Get comments for a specific pull request
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pull_request_comment
Get a single comment by ID from a pull request
| Parameter | Type | Description |
|---|---|---|
comment_id * | number | The comment ID |
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_comment_thread
Get a comment thread including the root comment and all nested replies
| Parameter | Type | Description |
|---|---|---|
comment_id * | number | The root comment ID to get thread for (will include all replies) |
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_pull_request_activity
Get activity (reviews, approvals, comments) for a specific pull request
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pull_request_diff
Get the raw unified diff for a pull request. Returns text/plain diff output showing all changes.
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
context | number | Number of context lines around changes (like git diff -U) |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
path | string | Filter diff to a single file path |
bb_get_pull_request_diffstat
Get the diffstat for a pull request — per-file summary of lines added/removed and change status.
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
path | string | Filter diffstat to a single file path |
bb_get_diff
Get the raw unified diff between commits. Use a single commit hash to diff against its parent, or "commit1..commit2" for comparing two commits.
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
spec * | string | Commit spec: a single commit hash (diffs against parent), or two commits as "commit1..commit2" |
workspace * | string | The workspace or username |
context | number | Number of context lines around changes |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
ignore_whitespace | boolean | Ignore whitespace changes |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
path | string | Filter diff to a single file path |
topic | boolean | When true with two-commit spec, produces a 3-dot diff (source vs merge-base) |
bb_get_diffstat
Get diffstat (per-file change summary) between commits. Use a single commit hash or "commit1..commit2".
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
spec * | string | Commit spec: a single commit hash (diffs against parent), or two commits as "commit1..commit2" |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
ignore_whitespace | boolean | Ignore whitespace changes |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
path | string | Filter diffstat to a single file path |
topic | boolean | When true with two-commit spec, produces a 3-dot diff (source vs merge-base) |
bb_get_pr_commits
List commits that belong to a pull request
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pr_statuses
Get CI/CD build statuses for a pull request (checks whether builds pass or fail)
| Parameter | Type | Description |
|---|---|---|
pull_request_id * | number | The pull request ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_commit
Get detailed information about a specific commit (hash, message, author, parents)
| Parameter | Type | Description |
|---|---|---|
commit * | string | The commit hash, branch name, or tag |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_commit_statuses
Get CI/CD build statuses for a specific commit
| Parameter | Type | Description |
|---|---|---|
commit * | string | The commit hash |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_merge_base
Get the common ancestor (merge-base) between two commits or branches. Use "branch1..branch2" format.
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
revspec * | string | Two commit hashes or branch names separated by ".." (e.g. "main..feature-branch") |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_file_history
Get the commit history for a specific file — shows which commits modified the file and when.
| Parameter | Type | Description |
|---|---|---|
commit * | string | Commit hash, branch, or tag to start history from |
path * | string | Path to the file in the repository |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_tags
List tags (release tags, version tags) for a repository
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_tag
Get detailed information about a specific tag including its target commit
| Parameter | Type | Description |
|---|---|---|
name * | string | The tag name |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_branch
Get detailed information about a specific branch including target commit and merge strategies
| Parameter | Type | Description |
|---|---|---|
name * | string | The branch name |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_list_pipelines
List CI/CD pipeline runs for a repository. Shows build status, trigger, and duration.
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pipeline
Get detailed information about a specific pipeline run
| Parameter | Type | Description |
|---|---|---|
pipeline_uuid * | string | The pipeline UUID (with or without curly braces) |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_pipeline_steps
List the steps/stages of a pipeline run with their status and duration
| Parameter | Type | Description |
|---|---|---|
pipeline_uuid * | string | The pipeline UUID (with or without curly braces) |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_pipeline_step_log
Get the build log output for a specific pipeline step. Useful for diagnosing build failures.
| Parameter | Type | Description |
|---|---|---|
pipeline_uuid * | string | The pipeline UUID (with or without curly braces) |
repo_slug * | string | The repository name |
step_uuid * | string | The step UUID (with or without curly braces) |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_issues
Get issues for a repository
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
kind | string | Filter by issue kind |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
state | string | Filter by issue state |
bb_get_issue
Get detailed information about a specific issue
| Parameter | Type | Description |
|---|---|---|
issue_id * | number | The issue ID |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_commits
Get commits for a repository branch
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
branch | string | Branch name (defaults to main branch) |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_branches
Get branches for a repository
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
bb_get_file_content
Get the content of a file from a repository with pagination support
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the file in the repository |
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
limit | number | Maximum number of lines to return (default: 1000, max: 10000) |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
ref | string | Branch, tag, or commit hash (defaults to main branch) |
start | number | Starting line number for pagination (1-based, default: 1) |
bb_browse_repository
Browse files and directories in a repository to explore structure
| Parameter | Type | Description |
|---|---|---|
repo_slug * | string | The repository name |
workspace * | string | The workspace or username |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
limit | number | Maximum number of items to return (default: 50, max: 100) |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
path | string | Directory path within the repository (default: repo root) |
ref | string | Branch, tag, or commit hash (defaults to main branch) |
bb_get_user
Get public information about a Bitbucket user by username or UUID. If no user is specified, returns the authenticated user. Note: private profiles may have limited fields.
| Parameter | Type | Description |
|---|---|---|
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
selected_user | string | The username or UUID of the user to look up. If omitted, returns information about the authenticated user. Note: some fields may be omitted for private profiles. |
bb_get_current_user
Get information about the currently authenticated user.
| Parameter | Type | Description |
|---|---|---|
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_search_repositories
Search for repositories within a workspace by name or description. Uses Bitbucket server-side filtering to search across all repositories, not just the first page. Supports sorting with the sort parameter.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query to filter repositories by name or description. Uses Bitbucket server-side filtering (BBQL) to search across all repositories in the workspace. |
workspace * | string | The workspace or username to search in |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100). Defaults to 100 for search. |
sort | string | Sort field, e.g. "-updated_on" for newest first, "name" for alphabetical. Prefix with "-" for descending order. |
bb_search_code
Search for code content within a workspace. Supports filtering by repository, language, and file extension.
| Parameter | Type | Description |
|---|---|---|
search_query * | string | Search query for code content |
workspace * | string | The workspace to search in |
extension | string | Filter code search by file extension |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
language | string | Filter code search by programming language |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
page | number | Page number for pagination |
pagelen | number | Number of items per page (max 100) |
repo_slug | string | Repository slug to limit search to specific repository |
bb_get_workspace
Get information about a workspace
| Parameter | Type | Description |
|---|---|---|
workspace * | string | The workspace name |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
bb_get_context
Get a curated bundle of PR context in a single call: PR metadata, diffstat summary, build/review status, and comment previews. Accepts a Bitbucket PR URL, or workspace/repo with pull_request_id or branch. Use detail_level "full" for PR description, per-file diffstat, and last 20 comments.
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch name to look up the open pull request for. Ignored if pull_request_id is provided. |
detail_level | string | Controls response verbosity: "summary" (default) returns counts and previews; "full" includes PR description, per-file diffstat, and last 20 comments. |
filter | string | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax |
output_format | string | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |
pull_request_id | number | The pull request ID. If omitted, branch must be provided to look up the open PR. |
repo_slug | string | The repository name (required if url is not provided) |
url | string | A Bitbucket pull request URL (e.g. https://bitbucket.org/workspace/repo/pull-requests/42). If provided, workspace, repo_slug, and pull_request_id are extracted automatically. |
workspace | string | The workspace or username (required if url is not provided) |