copy_file
Copy one file (not folders) to a free path in the same unlocked vault, encrypted and never decrypted; the change is logged and can be undone.
Instructions
Copy one file to a new path in the same open vault, which must be one that may be changed. It's copied encrypted, never decrypted. Files only, not folders; the new path must be free and its folder must exist, so nothing is overwritten. Use move to rename instead. The change is logged; undo puts the copy in the trash while it's unchanged. Returns both paths and the change id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The path for the copy in the same vault, for example 'Taxes/receipts copy.md'. It must be free. | |
| 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'. | |
| purpose | Yes | A few words on why, shown to the user or kept in the vault's change log. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |