addPullRequestComment
Add comments to Bitbucket pull requests, supporting general discussions or inline remarks on specific files and lines. Enable feedback and collaboration directly on code changes.
Instructions
Add a comment to a pull request (general or inline 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": {
"pull_request_id": "<pull_request_id>",
"content": "<content>"
},
"name": "addPullRequestComment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Comment body (markdown) | |
| inline_to | No | End line for inline comment (new side) | |
| parent_id | No | Parent comment ID for replies | |
| repo_slug | No | ||
| workspace | No | ||
| inline_from | No | Start line for inline comment (old side) | |
| inline_path | No | File path for inline comment | |
| pull_request_id | Yes | Pull request ID |