bb_get_context
Fetch a bundled context for a Bitbucket pull request: metadata, diffstat, build/review status, and comment previews. Accepts a PR URL or workspace/repo details, with options for summary or full detail.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 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. | |
| branch | No | Branch name to look up the open pull request for. Ignored if pull_request_id is provided. | |
| filter | No | 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 | |
| repo_slug | No | The repository name (required if url is not provided) | |
| workspace | No | The workspace or username (required if url is not provided) | |
| detail_level | No | Controls response verbosity: "summary" (default) returns counts and previews; "full" includes PR description, per-file diffstat, and last 20 comments. | |
| output_format | No | 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 | No | The pull request ID. If omitted, branch must be provided to look up the open PR. |