# snapshot (https://lazyfrog.dev/docs/tools/snapshot)

{/* Generated by scripts/generate-docs.ts from the gateway's registered tools. Do not edit. */}

**{"Snapshots"}** · Can change or delete · actions: `create`, `restore`, `undo`

<p>{"action \"create\": snapshot everything now (code, databases, data; label optional). action \"restore\": go back to a snapshot (name from snapshot_list); scope code (default), database, data or all, for env preview (default) or production; needs confirm: true and the snapshots:restore permission. The state being replaced is kept, so a restore can itself be undone. action \"undo\": take back the last change in one call: the preview goes back to the newest snapshot taken before a change (by fs_write, fs_edit, exec or a pull), scope code by default, and the files it reverts are listed; confirm: true is needed only when that is more than 20 files; undo again walks back one more change (undo of code needs only write access, like the edit it takes back; scope database, data or all needs the snapshots:restore permission)."}</p>
