manage_backups
Recover lost PowerPoint changes by listing, restoring, or purging automatic backups. Restore from prev, anchor, or a file; current content rotates into prev first so restores are undoable.
Instructions
The automatic backups under .ks4p-backups/ next to each mutated deck: prev (state before the last mutation) and anchor (session start). action='list': slots for one file_path or a whole directory, plus orphaned folders. action='restore': overwrite file_path from source ('prev', 'anchor', or a .pptx path); current content rotates into prev FIRST so the restore is undoable, and the payload is validated before the atomic replace. action='purge': scope 'orphans' or 'slots'; dry_run=True (default) reports only, dry_run=False deletes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| action | Yes | ||
| source | No | ||
| dry_run | No | ||
| directory | No | ||
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||