add_comment_inline
Attach an inline comment to a specific added or removed line in a pull request diff, with optional threaded replies.
Instructions
Add an inline comment to a specific line in a pull request diff.
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>",
"lineType": "<lineType>"
},
"name": "add_comment_inline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) to attach the comment to. | |
| prId | Yes | Pull request ID to comment on. | |
| text | Yes | Comment text (Markdown supported). | |
| project | No | Bitbucket project key (optional if default project configured). | |
| filePath | Yes | Path to the file in the repository. | |
| lineType | Yes | Line type (ADDED or REMOVED). | |
| parentId | No | Parent comment ID for threaded replies. | |
| repository | Yes | Repository slug containing the pull request. |