add_pull_request_comment
Post comments on Bitbucket pull requests, including inline file/line comments and replies to existing threads, to facilitate code review discussions.
Instructions
Add a comment to a pull request (general, inline on a file/line, or reply to existing comment)
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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>",
"pr_id": "<pr_id>",
"content": "<content>"
},
"name": "add_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | Pull request ID | |
| content | Yes | Comment text (markdown supported) | |
| line_to | No | Line number for inline comment (new file side) | |
| filepath | No | File path for inline comment | |
| line_from | No | Line number for inline comment (old file side) | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Bitbucket workspace slug | |
| parent_comment_id | No | Parent comment ID for reply threads |