post_draft_comment
Create a draft comment on a file line in Gerrit, visible only to you until published, with support for threaded replies via parent comment IDs.
Instructions
Creates a draft review comment on a specific line of a file in a CL. Draft comments are only visible to the author until explicitly published. Use in_reply_to with a parent comment ID to create a threaded reply.
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": {
"change_id": "<change_id>",
"file_path": "<file_path>",
"line_number": "<line_number>",
"message": "<message>"
},
"name": "post_draft_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| end_line | No | ||
| change_id | Yes | ||
| file_path | Yes | ||
| start_line | No | ||
| suggestion | No | ||
| unresolved | No | ||
| in_reply_to | No | ||
| line_number | Yes | ||
| end_character | No | ||
| gerrit_base_url | No | ||
| start_character | No |