snapshot_create
Create a VM snapshot via Xen Orchestra and capture its ID so the action can be undone later.
Instructions
[WRITE][risk=medium] Snapshot a VM. Inverse: delete THAT snapshot.
The created snapshot's REAL id is captured from the XO response, so the
recorded undo (snapshot_delete) is replayable.
Args:
vm_id: VM uuid to snapshot (see vm_list).
name: Snapshot name (e.g. 'pre-change-2026-07-17').
dry_run: If True, preview without snapshotting (no undo recorded).
target: Xen Orchestra target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| vm_id | Yes | ||
| target | No | ||
| dry_run | No |