addPRComment
Add general or inline comments to Bitbucket Data Center pull requests with replies, severity tasks, and file/line anchors to keep code review discussions contextual.
Instructions
Add a general or inline PR comment (buffered while this session has a review open).
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>",
"text": "<text>"
},
"name": "addPRComment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | ||
| text | Yes | ||
| parentId | No | Reply to this comment | |
| repoSlug | Yes | ||
| severity | No | BLOCKER = task | |
| anchorLine | No | Inline: line | |
| anchorPath | No | Inline: file path | |
| projectKey | No | ||
| anchorFileType | No | FROM=old, TO=new file | |
| anchorLineType | No |