bb_request
Access any Bitbucket Cloud 2.0 REST endpoint directly to cover actions beyond standard tools: merges, branches, pipelines, permissions. Paginate list endpoints for complete data.
Instructions
Call ANY Bitbucket Cloud 2.0 REST endpoint directly. This is the escape hatch for everything the purpose-built bb_* tools do not wrap - merges, commit comparison, branches and tags, pipelines, code search, webhooks, permissions. Use bb_list_endpoints first to get the exact path and params. Paths are relative to https://api.bitbucket.org/2.0 and must have real values substituted for {placeholders}. Set paginate=true on list endpoints to follow Bitbucket's next links and merge all pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the response body verbatim instead of pretty-printed JSON (use for diff/patch/log endpoints) | |
| body | No | JSON request body for POST/PUT/PATCH | |
| path | Yes | API path relative to the 2.0 base, e.g. /repositories/myworkspace/myrepo/pullrequests/123/comments | |
| query | No | Query string parameters | |
| method | No | HTTP method | GET |
| paginate | No | GET only: follow `next` links and merge every page's `values` | |
| max_pages | No | Page cap when paginating |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |