Update a document
update_documentChanges a draft and saves a new version (never publishes). Set answers (only the ones you change), switch template, or replace the text with your own Markdown (for imported or custom documents). Significant answers are refused until you pass the user's explicit confirmation in confirmed. Returns what changed and which other documents may need the same change.
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": {
"type": "<type>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why this change was made, shown in the version history | |
| type | Yes | ||
| answers | No | Question id → new answer | |
| template | No | ||
| confirmed | No | Ids of answers the user explicitly confirmed in this conversation | |
| content_markdown | No | Full document text in Markdown. Switches the document to own text. | |
| use_questionnaire | No | Switch an own-text document back to the generated version |