create_machine
Creates and boots a persistent Linux container machine from an image, with options for CPUs, memory, mounts, and nested virtualization.
Instructions
Create and boot a container machine (a persistent Linux environment) from an image.
home_mount is one of 'ro', 'rw', 'none'.
scheme selects registry http or https; CLI 1.4.1 defaults to https.
Set virtualization=True to enable nested virtualization (requires Apple Container 1.1+,
Apple Silicon M3+, macOS 15+, and a guest kernel built with CONFIG_KVM=y).
Example: create_machine("alpine:3.22", name="dev", cpus=4, memory="8G")
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": {
"image": "<image>"
},
"name": "create_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpus | No | ||
| name | No | ||
| image | Yes | ||
| memory | No | ||
| scheme | No | ||
| no_boot | No | ||
| home_mount | No | ||
| set_default | No | ||
| virtualization | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |