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}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No |