ZFS Snapshot Actions
zfs_snapshot_actionCreate, destroy, or roll back a ZFS snapshot over SSH without affecting child datasets; rollback discards later changes and requires confirmation and risk acknowledgment.
Instructions
⚠ Creates, destroys, or rolls back a ZFS snapshot (dataset + snapshot name) over SSH; never recursive, so child datasets are untouched. destroy permanently deletes the rollback point; rollback DISCARDS all changes made after the snapshot and only works against the most recent snapshot (older ones fail with zfs's own error — deliberate: no -r). Every action, including create, requires confirm: true AND acknowledge_risk: true. Check existing snapshots with zfs_snapshot_list first; for VM disk snapshots use vm_snapshot_create instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"dataset": "<dataset>",
"snapshot": "<snapshot>"
},
"name": "zfs_snapshot_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | `create` takes a new snapshot, `destroy` deletes one permanently, `rollback` discards every dataset change made after it. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| dataset | Yes | Dataset the snapshot belongs to, as pool or pool/dataset from zfs_dataset_list (no `@`). | |
| snapshot | Yes | Snapshot short name, the part after `@` (existing ones: zfs_snapshot_list); letters, digits, and . _ : - only. | |
| acknowledge_risk | No | Set `true` only after the user accepts the risk; needed with `confirm` for every action, including `create`. |