markPullRequestAsDraft
Set or clear a Bitbucket pull request's draft status via repository and pull request ID, enabling you to mark a PR as draft before review or remove draft status when ready.
Instructions
Set or clear PR draft status
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": {
"repoSlug": "<repoSlug>",
"prId": "<prId>",
"draft": "<draft>"
},
"name": "markPullRequestAsDraft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | ||
| draft | Yes | true to mark as draft, false to remove draft status | |
| repoSlug | Yes | ||
| projectKey | No |