set_vault_root
Points Loci at a user-chosen vault directory, records and seeds or adopts it, then applies the setting immediately so failed calls can be retried. Use when Loci is unconfigured or moving vaults.
Instructions
Point Loci at the user's vault directory. Returns {vault_root, created,
configured_at}, plus notice when adopting the vault moved files the user
owns — pass it on to them verbatim.
Call this when a tool has failed with LOCI_NOT_CONFIGURED, or when the user asks to move Loci to a different vault. It records the path, creates and seeds the directory, and takes effect immediately — no restart, and the call that failed can simply be retried.
Ask the user for the path first. Never guess one and never offer a default:
the vault holds everything they save, and a path they did not choose is a
vault they will never find again. If they are unsure, ask whether they keep
notes in a synced folder (Dropbox, Nextcloud, iCloud) and suggest a vault
directory inside it — but let them confirm the full path.
Args: path: Absolute path to the vault directory (~ is expanded). create: Create and seed the directory. Pass False to adopt a vault that already exists and nothing else: any other path — missing, or there but not a vault — fails without writing anything, so you can confirm it with the user first.
Fails when the deployment sets LOCI_VAULT_ROOT: that is a managed install where the operator fixed the path, and it cannot be changed from chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| create | No |