update_document
Update a document's content by providing markdown and serialized data, with an optional version note. Fails if the document is no longer editable due to completed approval flow.
Instructions
Update a document's content. serialized has the same object shape as create_document. Fails if the document is no longer editable (approval flow complete). Metadata is NOT updated here. NOT idempotent: if the call times out, the document may still have been created — list_documents before retrying.
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": {
"id": "<id>",
"raw": "<raw>",
"serialized": "<serialized>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (UUID) | |
| raw | Yes | Document body as markdown | |
| naration | No | Optional version note stored with the saved revision | |
| vendor_id | No | Optional vendor id (UUID) | |
| serialized | Yes | Serialized content object |