add_pull_request_comment
Create general, file, or line comments on Bitbucket pull requests to review and discuss code changes.
Instructions
Creates a general, file, or inline line comment on a Bitbucket pull request. This is a write operation and requires BITBUCKET_ENABLE_WRITE_TOOLS=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Bitbucket Cloud workspace ID or Bitbucket Server/Data Center project key | |
| repository | Yes | Repository slug or repository name | |
| pull_request_id | Yes | Pull request ID | |
| comment | Yes | Comment text. Bitbucket Cloud renders supported Markdown. | |
| file_path | No | Optional destination-side repository path for a file or line comment. | |
| source_file_path | No | Optional previous path for a renamed or copied file. Used by Server/Data Center. | |
| line | No | Optional 1-based diff line number. Requires file_path and line_type. | |
| line_type | No | Kind of diff line. Requires file_path and line. | |
| line_side | No | Diff side. Defaults to old for removed lines and new otherwise. |