post_pr_review_comment
Post an inline comment on a specific line of a file in a GitHub pull request, with options to save as draft or publish immediately.
Instructions
Posts a code review comment on a specific line of a file changed in the PR. All comments must be written in English.
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>",
"path": "<path>",
"line": "<line>",
"body": "<body>",
"status": "<status>"
},
"name": "post_pr_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The review comment in Markdown with suggestions. MUST be written in English. | |
| line | Yes | The line number in the file where the comment should be placed | |
| path | Yes | File path (e.g. src/app.js) | |
| repo | Yes | ||
| owner | Yes | ||
| status | Yes | Defines whether the comment should be published immediately ('PUBLIC') or created as a draft review pending user approval ('PENDING'). | |
| pull_number | Yes |