read_file
Read text from one file in an unlocked Cryptomator vault, returning a version line for safe edits and an offset for reading long files in parts; binary files return only a size note.
Instructions
Read the text of one file in an open vault. Returns the text, starting with a version line to pass to write_file if you replace the file (left out when the vault is read only), and ending with the offset for the next part when more is left; max_chars is capped at 200,000. Pictures and other binary files only get a note with their size. Changes nothing in the vault; the read and its purpose go in the user's private read log. Fails if the vault is locked (call unlock) or the path doesn't exist; use find or list_folder to find paths.
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'. | |
| offset | No | Where to start reading, in characters from the start of the file. Use it to read a long file in parts. | |
| purpose | Yes | A few words on why, shown to the user or kept in the vault's change log. | |
| max_chars | No | The most characters to return at once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |