Set PR draft state
set_pr_draft_stateToggle a pull request between draft and ready-for-review status. Pass a boolean to mark it as draft or ready, enabling clear PR workflow state.
Instructions
Mark a pull request as draft or ready for review. Pass draft: true to convert to draft, or draft: false to mark ready.
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": {
"draft": "<draft>"
},
"name": "set_pr_draft_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Bitbucket repo slug. | |
| draft | Yes | True to mark as draft, false to mark ready for review. | |
| pr_id | No | Pull request id. | |
| workspace | No | Bitbucket workspace (slug). |