Add review comment in Lightbringer
add_commentAdds a comment to the document under review, anchored to a quoted passage of the review markdown, and returns the created comment. If the quoted passage is ambiguous or cannot be located, the response indicates this along with candidate passages. A comment anchored within an existing thread is added as a reply. Targeted users with document access receive email and in-app mention notifications.
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": {
"review_id": "<review_id>",
"quoted_text": "<quoted_text>",
"comment": "<comment>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | The comment text | |
| review_id | Yes | The review identifier | |
| quoted_text | Yes | Quoted passage from the review markdown to anchor on | |
| target_user_ids | No | User identifiers to notify. Identifiers without document access are ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| hints | No | ||
| anchor | No | ||
| status | Yes | ||
| replyTo | No | ||
| commentId | No | ||
| candidates | No | ||
| instructions | No | ||
| mentionedUserIds | No |