Post inline review comment
post_review_commentPost an inline comment on a pull request diff line to deliver targeted review feedback. Write access must be explicitly enabled.
Instructions
Post a single inline comment at a diff line. Write access must be explicitly enabled.
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>",
"path": "<path>",
"line": "<line>"
},
"name": "post_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Review comment body | |
| line | Yes | Diff line number | |
| path | Yes | Repository-relative file path | |
| repo | Yes | GitHub repository name | |
| side | No | Diff side (default RIGHT) | |
| owner | Yes | GitHub repository owner or organization | |
| commit_id | No | PR head SHA; omitted to resolve the current head automatically | |
| start_line | No | Start line for a multi-line comment | |
| start_side | No | Start side for a multi-line comment | |
| pull_number | Yes | Pull request number |