manage_snapshot
Save, restore, diff, undo, list, or time-travel a spatial world database. Use it to roll back or compare world state instead of editing single entities.
Instructions
Checkpoint, diff, undo, or time-travel the spatial world database. Actions: save, restore, diff, list, undo, history, time_travel. restore (overwrites live state) and undo (reverts last matching mutation) are destructive and not always reversible except by saving first. diff, list, history, and time_travel are read-only. Returns {ok, action, snapshots[]|diff|state}. Use manage_snapshot instead of update_entity when rolling back, diffing, or time-traveling database state rather than editing single entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name for save/restore | |
| type | No | Mutation type to undo (default: any) | |
| action | No | Action to perform (default: list) | |
| project | No | Optional project identifier | |
| entity_id | No | Target entity ID for undo or history lookup | |
| timestamp | No | ISO timestamp for time-travel reconstruction | |
| snapshot_a | No | First snapshot name for diff | |
| snapshot_b | No | Second snapshot name for diff | |
| description | No | Optional snapshot description |