addPullRequestComment
Add a comment to a pull request: post a general discussion comment, place an inline review on a specific diff line, or reply to an existing comment.
Instructions
Comment on a pull request. Without inline — a general discussion comment. With inline {path, to} — an inline review comment on line to of the diff (commit SHA is resolved automatically). Replying: pass reply_to with a comment id.
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>",
"content": "<content>"
},
"name": "addPullRequestComment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| inline | No | Make it an inline diff comment | |
| content | Yes | Comment content (markdown) | |
| reply_to | No | Comment id to reply to (general comments only) | |
| pull_number | Yes | Pull request number |