Request an invite
Docs menu

vm_snapshot

Snapshot a virtual machine.

Snapshots a machine's disk, and its memory with include_memory, so that vm_revert can return to it. Your session's first change of the machine already took one, which undoes your session; take one only of a state you mean to return to. The machine's policy keeps the newest of agents' snapshots, 5 unless the person chose another number, and deletes older ones. A running machine keeps running, on either engine; a suspended one's memory is its suspension's. The memory of a Linux machine whose guest has no driver for its USB controller is refused before anything is saved; the refusal says why.

Profiles
operator, full
Read-only
No
Destructive
No
Idempotent
No
Open world
No
Runs as a task
Optional

Parameters

include_memoryboolean

Save memory too, so that reverting resumes the machine; default false.

namestring

Defaults to the time.

vmstringRequired

The machine's name or identifier, as vm_list shows it.

wait_secondsinteger

Seconds to wait before answering with a job to follow; default 20.

From 0 to 30.

Output

The result's structured content is one of these objects.

JSON Schema: /schemas/0/mcp/tools/vm_snapshot/output.json

running

jobstringRequired
statestringRequired

One of running.

snapshot

createdAtstring (date-time)Required
discstring (uri)
discControllerboolean
firmwareobject
firmware.sha256stringRequired
firmware.versionstringRequired
frameworkSoundobject
frameworkSound.playsbooleanRequired
frameworkSound.recordsbooleanRequired
frameworkSound.sourceboolean
guestToolsboolean
hardwareobjectRequired
hardware.cpuCountintegerRequired
hardware.diskSizeintegerRequired

At least 0.

hardware.displayobject
hardware.memorySizeintegerRequired

At least 0.

hardware.nestedVirtualizationboolean
hardware.processorobject
hostBuildstring
idstring (uuid)Required
includesMemorybooleanRequired
isCrashConsistentbooleanRequired
isKeptbooleanRequired
jobstring
namestringRequired
networkPathstring

One of direct, detached, filtered.

originstring or objectRequired

One of manual, or an object that holds one key: agentSession, agent, beforeRevert, schedule, beforeUpdate, beforeDrivers, guest, beforeGuestRevert, codeSession, beforeMacOSUpdate or beforeFirmwareUpdate.

origin.agentSessionobject
origin.agentobject
origin.beforeRevertobject
origin.scheduleobject
origin.beforeUpdateobject
origin.beforeDriversobject
origin.guestobject
origin.beforeGuestRevertobject
origin.codeSessionobject
origin.beforeMacOSUpdateobject
origin.beforeFirmwareUpdateobject
partitionGrowthobject
partitionGrowth.diskSizeintegerRequired

At least 0.

partitionGrowth.failuresintegerRequired
partitionGrowth.problemobject
partitionGrowth.retriesbooleanRequired
rosettaboolean
windowsDriversobject
windowsDrivers.datestring (date-time)Required
windowsDrivers.namestringRequired
windowsDrivers.resultsarray of objectsRequired
windowsDrivers.setstringRequired
windowsDrivers.snapshotstring (uuid)
windowsDrivers.snapshotNamestring
withoutNetworkbooleanRequired

Fields nested deeper are in the schema.

Report a problem with this page