add_pull_request_comment
Add a comment to a pull request on GitHub or Bitbucket Cloud. Specify provider, repository, pull request ID, and comment text to post feedback directly.
Instructions
Add a comment to a pull request.
Args: provider: Provider key. repo: Repository identity. pull_request_id: Provider pull-request identifier. body: Comment text. raw: Include the provider payload.
Returns: Normalized write-result mapping.
Examples:
Input: {"repo": "o/r", "pull_request_id": "7", "body": "Looks good"}.
Output: {"id": "comment-1", "state": "", ...}.
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": {
"provider": "<provider>",
"repo": "<repo>",
"pull_request_id": "<pull_request_id>",
"body": "<body>"
},
"name": "add_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| body | Yes | ||
| repo | Yes | ||
| provider | Yes | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||