vm_grow_disk
Grow a virtual machine's disk.
Grows a stopped machine's disk to size_gib, as a job; stop it with vm_stop first. A disk only grows: a smaller size is refused. The guest grows its system volume to fill the disk at its next start; until it has, vm_info shows the growth and why it waits, and vm_events says when the volume grew. The same size asks the guest again. Snapshots keep the size they were taken with, which vm_revert and a clone of one give back. It needs room on the Mac for the growth.
- Profiles
- operator, full
- Read-only
- No
- Destructive
- No
- Idempotent
- No
- Open world
- No
- Runs as a task
- Optional
Parameters
size_gibintegerRequiredThe disk's new size.
From 4 to 2048.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
wait_secondsintegerSeconds 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_grow_disk/output.json
running
jobstringRequiredstatestringRequiredOne of
running.
diskGrowth
afterintegerRequiredAt least 0.
askedGuestAgainbooleanRequiredbeforeintegerRequiredAt least 0.
elapsedintegerRequiredjobstringRequiredmovedRecoveryintegerAt least 0.