comment_add
Anchor a new agent-signed comment to a file line range; use task to queue work or note to inform the next reader, then get its ID and state as JSON.
Instructions
Anchor a new comment to a line range, signed by the agent. A task (the default) joins the user's task queue as work to do; a note explains something to the next reader without asking for action. Answers the new comment's id and state as JSON. To answer an existing comment use comment_reply; during a guided review use review_propose_comment, which the human approves first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last line of the range, inclusive. Defaults to `line`. | |
| body | Yes | The comment, in Markdown. | |
| file | Yes | Project-relative path, e.g. `src/lib/api.ts`. | |
| kind | No | `task` asks for work (default); `note` only informs. | |
| line | Yes | First line of the range, 1-based. | |
| type | No | What the comment is about. Defaults to note. |