undo_last_vault_change
Undoes the newest vault commit by removing nodes it created or restoring changed/deleted nodes as a new commit; pass a commit hash to undo only that specific change.
Instructions
Undo the newest vault commit: a node it created is removed, a node it changed or deleted is put back as before. Recorded as a new commit, so calling it again undoes the undo.
Use it right after a write that went wrong. If other writes came after the
mistake, use history_vault and restore_vault on the one node instead.
Pass commit (the hash the bad write returned, at least 7 characters) to
undo only that change: if a newer one has landed since, nothing is undone
and an error is returned.
Tell the user what you undid. Returns {undone, undone_commit, files, commit}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "undo_last_vault_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No |