add_pr_comment
Add comments to Bitbucket pull requests, including inline comments on specific code lines, to provide feedback and collaborate on code changes.
Instructions
Add a comment to a pull request.
Can add general comments or inline comments on specific lines.
Args:
repo_slug: Repository slug
pr_id: Pull request ID
content: Comment content (markdown supported)
file_path: File path for inline comment (optional)
line: Line number for inline comment (optional, requires file_path)
Returns:
Created comment info
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": {
"repo_slug": "<repo_slug>",
"pr_id": "<pr_id>",
"content": "<content>"
},
"name": "add_pr_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| pr_id | Yes | ||
| content | Yes | ||
| file_path | No | ||
| repo_slug | Yes |