Rewrite document from text (new version)
clio_document_writeReplaces the body of an existing Clio DOCX with new markdown-lite text while keeping its header, footer, and styles. Preview first, then confirm the write.
Instructions
Creates a new version of an existing DOCX document in Clio from the given text (same markdown-lite format as clio_document_create_from_letterhead). The document body is REPLACED by the new text; header, footer and styles are kept (template = the document itself, or base='letterhead' = the current letterhead of the user). Suitable for fixing documents created by Claude; for third-party documents with complex formatting prefer downloading and editing in Cowork. Write operation – preview first, then confirm with the token from the preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | document (default) = header/footer from the current version of the document; letterhead = from the user's letterhead | |
| confirm | No | confirm=true performs the write. Use it directly when the user's request contains everything needed; call without confirm (preview) only when you want to check the data first or something is unclear. | |
| content | Yes | New complete text of the document (markdown-lite) | |
| document_id | Yes |