add_comment
Post comments, replies, inline code annotations, or blocker tasks on Bitbucket Server pull requests.
Instructions
Add a comment (general, reply, inline, or blocker task) to a pull request in Bitbucket Server
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>",
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"text": "<text>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The content of the comment | |
| anchor | No | Optional anchoring information for an inline/code comment | |
| parentId | No | Optional ID of a parent comment to reply to (threaded comment) | |
| repoSlug | Yes | The repository slug | |
| severity | No | Optional comment severity. Use 'BLOCKER' to create a task, 'NORMAL' for a standard comment | |
| projectKey | Yes | The project key (e.g., PROJ) | |
| pullRequestId | Yes | The pull request ID |