write_file
Creates or safely replaces text files in an unlocked Cryptomator vault. Pass the last known version to block stale overwrites, keep old contents restorable, and log the reason for each change.
Instructions
Create a text file, or replace one. To replace, pass the version that read_file or file_info gave you; if the file changed since, nothing is written. The old contents are kept and the change can be undone. purpose: a few words on why (kept in the change log). confirm: only when a previous answer asked for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A path inside the vault, from its top, for example 'Taxes/2025/receipts.md'. | |
| vault | Yes | The vault's name, as listed by the vaults tool, for example 'Taxes'. | |
| confirm | No | Leave empty. Only pass the code a previous answer gave you, after the user agreed. | |
| content | Yes | The whole text the file should hold. | |
| purpose | Yes | A few words on why, shown to the user or kept in the vault's change log. | |
| version | No | To replace an existing file: the version read_file or file_info gave you. Leave empty for a new file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |