docugen_answer_decision
Close one open decision of a document (DA-01...) with the answer the user gave you, or accept the DocuGen suggestion as it is by leaving answer out, like the Accept button on screen. DocuGen writes the decision label the open-decisions panel reads ("Decisão:" or "Decision:"), so the panel and docugen_get_document show it as accepted; never close a decision by rewriting its text with your own label. Works like docugen_update_document: pass the revision from docugen_get_document, it opens or continues your edit session and returns the next revision; call docugen_submit_for_review when done. Only answer what the user decided: a suggestion the user did not confirm stays a suggestion. On an approved document it needs reopenApproved: true, like docugen_update_document.
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>",
"decisionId": "<decisionId>",
"expectedRevision": "<expectedRevision>"
},
"name": "docugen_answer_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | No | The decision, in one line, in the language of the document. Leave it out to accept the DocuGen suggestion unchanged | |
| decisionId | Yes | The decision id as written in the document, e.g. "DA-03" | |
| documentId | Yes | Document id | |
| reopenApproved | No | Only after the user agreed: edit an approved or implemented document. Submitting the edit for review moves it back to in_review and the user has to approve it again | |
| expectedRevision | Yes | The revision returned by docugen_get_document |