add_pr_comment
Add comments to Bitbucket Cloud pull requests for general feedback or specific file/line discussions. Use this tool to provide code reviews, ask questions, or share insights directly within pull requests.
Instructions
Add a comment to a pull request. Can be a general comment or an inline comment on a specific file/line.
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_pr_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| pr_id | Yes | The pull request ID | |
| content | Yes | Comment content (markdown) | |
| path | No | File path for inline comment | |
| line | No | Line number for inline comment |