Create comment
create_commentCreates review feedback on a markdown document by commenting on an exact quoted phrase for precise anchoring, or leaving a document-level note when no anchor is needed.
Instructions
Author a NEW comment on a document, anchored to a quoted phrase — use this to leave review feedback at a specific spot (you act as a reviewer). Pass quoted_text = the exact phrase from the source to anchor to (the viewer highlights it wherever it occurs) and text = your comment. Omit quoted_text for a document-level (unanchored) note. Attributed to role (default agent). After this, the reviewer (or you) can reply/resolve it like any thread.
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": {
"document_id": "<document_id>",
"text": "<text>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | attribution; default agent | |
| text | Yes | the comment body | |
| document_id | Yes | the review id the comments belong to (the document_id) | |
| quoted_text | No | exact phrase to anchor + highlight (omit for a doc-level note) |