bb_create_pull_request_comment
Add a general or inline comment to a Bitbucket pull request, specifying file path and line numbers for targeted feedback.
Instructions
Add a comment to a Bitbucket pull request — general or inline on a specific file/line.
Args: pull_request_id: The PR id (number). content: Comment body (Markdown). inline_path: File path for inline comment. inline_to: Line number in new version. inline_from: Line number in old version. workspace: Bitbucket workspace slug. repo: Repository slug.
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": {
"pull_request_id": "<pull_request_id>",
"content": "<content>"
},
"name": "bb_create_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository slug. Defaults to BITBUCKET_DEFAULT_REPO. | |
| content | Yes | Comment body (Markdown). | |
| inline_to | No | Line number in the new version of the file. | |
| workspace | No | Bitbucket workspace slug. Defaults to BITBUCKET_WORKSPACE. | |
| inline_from | No | Line number in the old version of the file. | |
| inline_path | No | File path for an inline comment. Omit for a general comment. | |
| pull_request_id | Yes | The PR id (number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||