docugen_add_comment
Leave a comment on a document. Use it to report that the implementation diverged from the specification without rewriting the document. Also use it on an approved parent when the owner widens the scope after approval (a new rule or requirement the child document now has): an approved document is not edited, the comment records the widening there, and DocuGen reads the open comments of the parent whenever a child is generated again.
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": {
"documentId": "<documentId>",
"body": "<body>"
},
"name": "docugen_add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment text | |
| section | No | Optional heading the comment refers to | |
| documentId | Yes | Document id |