add_review_comment
Add comments to pull requests for code review feedback, supporting line-specific annotations on GitHub or GitLab repositories.
Instructions
Add a review comment to 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>",
"pullRequestNumber": "<pullRequestNumber>",
"body": "<body>"
},
"name": "add_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | Repository in format "owner/repo" | |
| pullRequestNumber | Yes | Pull request number | |
| body | Yes | Comment body | |
| filePath | No | File path for line comment (optional) | |
| line | No | Line number for line comment (optional) | |
| provider | No | Git provider (github or gitlab) | gitlab |