bitbucket_add_pull_request_inline_comment
Adds an inline comment to a specific line of a file in a Bitbucket pull request, enabling targeted code review feedback.
Instructions
Add an inline comment on a specific line of a file in a pull request.
Args: workspace: Workspace name or project key. repository: Repository name. pull_request_id: Pull request ID. comment: Comment text. file_path: Path to the file to comment on. line: Line number to attach the comment to. line_type: Line type for Server/DC ('ADDED', 'REMOVED', or 'CONTEXT').
Returns: JSON string containing the created comment details.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number in the file to attach the comment to | |
| comment | Yes | Comment text | |
| file_path | Yes | Path to the file being commented on (e.g. 'src/main.py') | |
| line_type | No | Type of the line being commented on. Only used for Bitbucket Server/DC. 'ADDED' for new lines, 'REMOVED' for deleted lines, 'CONTEXT' for unchanged lines. | ADDED |
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| pull_request_id | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |