add_pr_review_comment
Add an inline review comment to a specific file and line in a pull request.
Instructions
Add a review comment to a pull request (inline comment on a specific file/line)
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": {
"owner": "<owner>",
"repo": "<repo>",
"pull_number": "<pull_number>",
"body": "<body>",
"commit_id": "<commit_id>",
"path": "<path>"
},
"name": "add_pr_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment body text | |
| line | No | The line number in the diff to comment on | |
| path | Yes | The relative path of the file to comment on | |
| repo | Yes | ||
| side | No | Which side of the diff. Default: RIGHT | |
| owner | Yes | ||
| commit_id | Yes | SHA of the commit to comment on | |
| pull_number | Yes |