Write Document
write_documentOverwrite the body of an existing Scrivener document with new plain text content. A backup is automatically created before the change.
Instructions
Replace the entire text of an existing document with new content. This overwrites the body; a backup of the previous version is taken first and the write is atomic. To change only the title or metadata use update_document; to add a new document use create_document. Requires an open project and a valid document id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Document body as plain text. May be empty. | |
| documentId | Yes | Scrivener document UUID, as returned by get_structure (a binder item "id"). |