addPullRequestComment
Add a comment to a Bitbucket pull request, either as a general discussion note or inline on a specific file and line, with optional threaded replies.
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": {
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"content": "<content>"
},
"name": "addPullRequestComment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Inline comment position for commenting on specific lines | |
| content | Yes | Comment content in markdown format | |
| parentId | No | Parent comment ID for threaded replies | |
| repoSlug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace name | |
| pullRequestId | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |