create_pull_request_review_comment
Create an inline line- or file-level review comment on a pull request, verifying it targets the expected head SHA before posting.
Instructions
Create an inline line- or file-level review comment on the exact expected pull request head SHA. The body is sent through stdin and is not audited.
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": {
"account": "<account>",
"repository": "<repository>",
"pullRequestNumber": "<pullRequestNumber>",
"expectedHeadSha": "<expectedHeadSha>",
"body": "<body>",
"path": "<path>"
},
"name": "create_pull_request_review_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| line | No | ||
| path | Yes | ||
| side | No | ||
| account | Yes | ||
| hostname | No | ||
| startLine | No | ||
| startSide | No | ||
| repository | Yes | Repository in owner/name format | |
| subjectType | No | line | |
| expectedHeadSha | Yes | ||
| pullRequestNumber | Yes |