add_comment
Adds a Markdown comment to a pull request for review feedback, discussion, or threaded replies. Use it to document review notes directly on the PR.
Instructions
Add a comment to a pull request for review feedback or discussion.
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>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID to comment on. | |
| text | Yes | Comment text (Markdown supported). | |
| project | No | Bitbucket project key (optional if default project configured). | |
| parentId | No | Parent comment ID for threaded replies. | |
| repository | Yes | Repository slug containing the pull request. |