create_pull_request_comment
Post a comment on a Bitbucket pull request: add general feedback, inline line-specific notes, or reply to an existing comment.
Instructions
Posts publicly visible content to Bitbucket — do NOT call this tool unless the user has explicitly approved the exact comment text. Post a comment on a pull request. Three modes: general (only content), inline on a specific line (file_path + line, with line_type indicating whether the line is added or removed in the diff), or a reply to an existing comment (parent_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | For inline comments: 1-based line number the comment anchors to. | |
| repo | Yes | Repository slug, e.g. "my-service" (not the full URL). | |
| pr_id | Yes | Pull request id, e.g. 42. | |
| content | Yes | Comment body (Markdown supported). | |
| file_path | No | For inline comments: file path exactly as it appears in the diff. | |
| line_type | No | Whether `line` refers to a line added ("+", numbered in the new file) or removed ("-", numbered in the old file) in the diff. Default: added. | |
| parent_id | No | Id of an existing comment to reply to. | |
| workspace | No | Workspace id. Optional when the BITBUCKET_WORKSPACE env var is set. |