Post pull request comment
bb_post_pull_request_commentPost pull request comments at PR level or inline on files and lines; optionally create blocker follow-up tasks or draft comments on Server/DC.
Instructions
Post a comment on a pull request: PR-level, or inline with file+line (and startLine for multiline suggestion blocks). severity=BLOCKER additionally creates a follow-up task (on Cloud it also prefixes the text with '[BLOCKER]'). pending=true drafts the comment on Server/DC (rejected on Cloud — no draft support).
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>",
"text": "<text>"
},
"name": "bb_post_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File path for an inline comment (omit for PR-level). | |
| line | No | Line number for an inline comment (required with file). | |
| text | Yes | Comment text (markdown); wrap lines in a ```suggestion block for suggestions. | |
| pending | No | true = draft the comment (Server/DC only); publish it via bb_submit_pull_request_review. | |
| lineType | No | Which side of the diff the anchored line belongs to. | ADDED |
| severity | No | BLOCKER additionally creates a follow-up task. | NORMAL |
| taskText | No | Custom task text when severity=BLOCKER. | |
| startLine | No | First line of a multi-line comment/suggestion block. | |
| projectKey | Yes | Project key (on Cloud: workspace slug). | |
| pullRequestId | Yes | Pull request id. | |
| repositorySlug | Yes | Repository slug. |