Post pull request review
post_review_commentPosts GitHub pull request reviews with an overall summary and optional inline diff comments, validating all comment targets before posting and supporting dry-run previews.
Instructions
Post a review on a pull request: an overall summary plus optional inline comments on specific lines. Inline comments must target lines in the PR's diff (RIGHT = new version, LEFT = removed lines); they're all checked first, and nothing is posted if any is invalid. Defaults to a neutral COMMENT review. Use dryRun to preview. Requires a GITHUB_TOKEN that can write to pull requests. Only post when the user has asked you to.
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>",
"pullNumber": "<pullNumber>",
"body": "<body>"
},
"name": "post_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Overall review summary, in Markdown | |
| repo | Yes | Repository name, e.g. 'next.js' | |
| event | No | COMMENT (default) leaves feedback without a verdict; REQUEST_CHANGES and APPROVE set the review status | COMMENT |
| owner | Yes | Repository owner (user or org), e.g. 'vercel' | |
| dryRun | No | Validate and preview the review without posting it | |
| comments | No | Inline comments; each line must be part of the PR's diff | |
| pullNumber | Yes | Pull request number |