Publish Draft Pull Request
publish_draft_pull_requestConvert a draft pull request to an open pull request in Bitbucket Cloud by providing the repository slug and pull request ID.
Instructions
Publish a draft pull request (convert DRAFT to OPEN).
Args: repo_slug: Repository slug pull_request_id: Pull request ID workspace: Workspace name (optional, defaults to configured workspace)
Returns: Updated pull request details
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_slug": "<repo_slug>",
"pull_request_id": "<pull_request_id>"
},
"name": "publish_draft_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| workspace | No | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |