add_pull_request_comment
Add general or inline comments to a Bitbucket pull request to provide feedback or start discussion on specific lines of code.
Instructions
Add a comment to a pull request.
Use this tool to add feedback or discussion to a pull request. Can add general comments or inline comments on specific lines of code.
Args: pr_id: Pull request ID. comment: The comment text to add. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace. file_path: Path to file for inline comment (optional). line_number: Line number for inline comment (optional, requires file_path).
Returns: JSON object confirming the comment was added.
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": {
"pr_id": "<pr_id>",
"comment": "<comment>"
},
"name": "add_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | ||
| comment | Yes | ||
| file_path | No | ||
| workspace | No | ||
| repository | No | ||
| line_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |