bitbucket_add_pull_request_inline_comment
Post an inline comment on a specific file line in a Bitbucket pull request, providing contextual feedback directly at the relevant code.
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.
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": {
"workspace": "<workspace>",
"repository": "<repository>",
"pull_request_id": "<pull_request_id>",
"comment": "<comment>",
"file_path": "<file_path>",
"line": "<line>"
},
"name": "bitbucket_add_pull_request_inline_comment"
}
}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 |