add_pr_comment
Add a comment to a pull request for review feedback, either general or line-specific. Supports replies and line-level comments on specific files and commits.
Instructions
Add a comment to a PR (general or line-specific)
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>",
"prNumber": "<prNumber>",
"body": "<body>"
},
"name": "add_pr_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment body | |
| line | No | Line number for line comment | |
| path | No | File path for line comment | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner/organization | |
| prNumber | Yes | Pull request number | |
| commit_id | No | SHA of the commit to comment on | |
| in_reply_to | No | ID of comment to reply to |