create-pr-comment
Posts a comment on a Bitbucket pull request or replies to an existing comment by parent ID, including optional inline file and line references.
Instructions
Create a comment on a pull request, or reply to an existing comment by specifying a parent comment ID
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_slug": "<repo_slug>",
"pull_request_id": "<pull_request_id>",
"content": "<content>"
},
"name": "create-pr-comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Comment content in plain text | |
| to_line | No | Line number in the new version of the file (for inline comments) | |
| file_path | No | Path to the file for inline comments | |
| from_line | No | Line number in the old version of the file (for inline comments) | |
| parent_id | No | ID of the parent comment to reply to | |
| repo_slug | Yes | Repository slug/name | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. | |
| pull_request_id | Yes | Pull request ID |