Files
The workspace's files are the folder mnt/, the only place on the machine the assistant's file tools reach.
AskList the files in notes and show me todo.md.
file_list and file_read. Both run without a question. AskSave this list as shopping/week.md.
file_write asks first, with the path, and creates the folders it needs. AskMail the PDF in contracts to bob@home.example.
file_read is. What it gives you
- One folder. The file tools see
nocturn-data/workspaces/<name>/mnt/and nothing above it. A path with.., an absolute path or a link that points out is refused by the system itself, not only by a check on the text. - Reading is free, changing asks. Reading, listing, finding and
file_statare allowed in chats and voice. Writing, moving and removing ask in a chat, and are off for voice and for paired devices. - The control files are out of reach.
permissions.json,PERSONA.md,memory/and the vault lie besidemnt/, so no file tool can change them. - Secrets stay out. A value the vault knows is replaced before the text reaches the model.
- Files go out by mail, and come in. See below.
The file tools
| Tool | What it does | Chat | Voice | Agent | Device |
|---|---|---|---|---|---|
file_list, file_stat | list a folder; ask whether a path exists | allow | allow | off → allow | off |
file_read | read a file as text, up to 1 MiB | allow | allow | off → allow | off |
file_search | find files by a glob such as *.md, up to 500 | allow | allow | off → allow | off |
file_write, file_move, file_remove | change files | ask | off | off → ask | off |
An answer to a write can be Always for a folder, such as notes/*; * does not cross a / (Permission reference). Arguments for each tool: Built-in tools.
Use a folder of your own
mnt/ is an ordinary folder. To work on files that live elsewhere, put them there: in Docker, mount the host folder at /data/nocturn-data/workspaces/<name>/mnt (the daemon runs as UID 65532, so give that user the folder, as in Docker). A symbolic link inside mnt/ that points outside it does not work: it is refused. Back up mnt/ with the rest of the workspace (Workspaces).
The subfolder knowledge/ is the one that is indexed (Knowledge).
Mail attachments
| Direction | How |
|---|---|
| Out | mail_send takes up to 10 files of 10 MiB together. A file is a path in mnt/, such as knowledge/invoice.pdf, or a picture the chat carries |
| In | mail_read lists a message's attachments; mail_attachment_save saves one, by default as mail/<its name> in mnt/, up to 25 MiB, and never over a file that exists |
Two permissions apply. Reading a file to attach it is decided by the file_read cell of whoever sends, so a holder that may not read the workspace cannot mail a file of it. Saving an attachment is a file write and asks about its path. Each new recipient asks as well (Mail, Review a draft).