add_inline_comment
Add an inline comment to a specific file and line in a pull request, enabling contextual code review feedback.
Instructions
Add an inline comment to a file in a pull request
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": {
"repository": "<repository>",
"prId": "<prId>",
"text": "<text>",
"filePath": "<filePath>",
"line": "<line>"
},
"name": "add_inline_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Bitbucket project key | |
| repository | Yes | Repository slug | |
| prId | Yes | Pull request ID | |
| text | Yes | Comment text | |
| filePath | Yes | Path to the file in the repository | |
| line | Yes | Line number to comment on | |
| lineType | No | Type of line (default is CONTEXT) | |
| startColumn | No | Starting column for code highlight (optional) | |
| endColumn | No | Ending column for code highlight (optional) | |
| parentId | No | Parent comment ID for replies |