read_vault
Retrieve a vault file by UID or path; pass a commit hash to return its state after that commit, including earlier or deleted versions.
Instructions
Read a vault file. Accepts an 8-character hex UID (e.g. "0b74b77c"), an absolute path, or a path relative to vault_root (e.g. "my-note--0b74b77c.md"). Prefer passing the UID when you have it — the path will be resolved automatically.
With commit (a hash from history_vault), returns the file as it was right
after that commit — also for a node that has since been changed or deleted.
For a deleted node, pass the hash of the commit that deleted it with "1"
added (e.g. "a1b2c3d1") to get the last version before the deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| commit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |