caddy_revert
List, save, and apply Caddy config snapshots to restore previous configurations and rollback changes.
Instructions
Manage config snapshots for rollback. Snapshots are auto-captured before caddy_load and kept in-memory (last 10). Actions: 'list' shows snapshots with timestamps, 'save' manually captures the current config, 'apply' restores a snapshot (requires confirm=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Snapshot index for 'apply' (0 = most recent, default) | |
| action | Yes | Action to perform | |
| confirm | No | Must be true to actually apply a snapshot (safety) |