Comment on a pull request
add_pull_request_commentAdd context to code reviews by posting comments on Bitbucket pull requests. Support inline comments on specific files and lines.
Instructions
WRITE — posts a comment on the PR. Provide path and line together for an inline 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": {
"repo": "<repo>",
"id": "<id>",
"text": "<text>"
},
"name": "add_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Pull request number. | |
| line | No | Line (new side) for an inline comment. | |
| path | No | File for an inline comment. | |
| repo | Yes | Repository repo_slug. | |
| text | Yes | Comment text (markdown supported). | |
| workspace | No | Bitbucket workspace. Omit to use BITBUCKET_WORKSPACE. |