restore_vault
Restore a vault node to its last committed version to repair write damage or bring back a deleted node, with the restore saved as a new undoable commit.
Instructions
Put a node back as it was right after commit. Use it to repair a node
that a write damaged, or to bring back a deleted node.
You may call this without asking the user first: a restore is recorded as a new commit, nothing is lost, and it can itself be undone. But:
Read the old version first (read_vault with commit) and check it holds the content you want back.
If the node was changed after the damage, a restore also drops those newer changes. Ask the user first, or use read_vault with commit and patch_vault to put back only the missing part.
Tell the user what you restored: node, commit and why.
To restore a deleted node, pass its UID and the hash of the commit that
deleted it with "1" added (e.g. "a1b2c3d1").
A commit from before a rename restores the node at the path it has now.
Returns {restored, uid, path, from_commit, was_deleted, commit}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"commit": "<commit>"
},
"name": "restore_vault"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| commit | Yes |