vm_clone
Clone a virtual machine or template to a new name, optionally specifying target host and datastore. Power on the clone after creation if needed.
Instructions
[WRITE] Clone a VM. Without to_host/to_datastore the clone lands on the source's host+datastore.
Args: vm_name: Source VM (or template) name. new_name: Name for the new clone. to_host: Target ESXi host name (default: source's host). to_datastore: Target datastore name (default: source's datastore). power_on: Power on the clone after creation. target: vCenter/ESXi target name from config.
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": {
"vm_name": "<vm_name>",
"new_name": "<new_name>"
},
"name": "vm_clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| to_host | No | ||
| vm_name | Yes | ||
| new_name | Yes | ||
| power_on | No | ||
| to_datastore | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |