Submit pull request review
bb_submit_pull_request_reviewSubmit an APPROVED, NEEDS_WORK, or UNAPPROVED review verdict on a Bitbucket pull request, with automatic reviewer resolution and best-effort draft publishing where supported.
Instructions
Submit a review verdict (APPROVED | NEEDS_WORK | UNAPPROVED). Server/DC: best-effort publishing of pending drafts first, reviewer identity resolved automatically (userSlug → session user → activity consensus → single participant → userFilter). Cloud: reviews always act as the authenticated user (a mismatching userSlug is rejected), NEEDS_WORK maps to 'request changes', no pending drafts exist.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>",
"pullRequestId": "<pullRequestId>",
"verdict": "<verdict>"
},
"name": "bb_submit_pull_request_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verdict | Yes | Review verdict to submit. | |
| userSlug | No | Reviewer slug; resolved automatically when omitted (must match the configured account on Cloud). | |
| projectKey | Yes | Project key (on Cloud: workspace slug). | |
| userFilter | No | Fallback: disambiguate your user by name/email filter (Server/DC only). | |
| pullRequestId | Yes | Pull request id. | |
| repositorySlug | Yes | Repository slug. |