Post PR Comment
bitbucket_post_pull_request_commentPost general, reply, or inline code comments on Bitbucket Data Center pull requests by specifying project, repository, pull request ID, and optional file/line details.
Instructions
Post a comment on a pull request.
Can post general comments, reply to existing comments, or add inline code comments at a specific file and 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": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>",
"pull_request_id": "<pull_request_id>",
"text": "<text>"
},
"name": "bitbucket_post_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Line number for inline comment | |
| text | Yes | The comment text (supports Markdown) | |
| file_path | No | File path for inline comment | |
| line_type | No | ADDED, REMOVED, or CONTEXT for inline comments | |
| parent_id | No | Parent comment ID to reply to | |
| project_key | Yes | The project key | |
| pull_request_id | Yes | The pull request ID number | |
| repository_slug | Yes | The repository slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |