convert_vm_to_template
Convert a powered-off VM into a vSphere template for use as a clone source. The VM becomes a reusable template and can no longer be powered on.
Instructions
[WRITE] Convert a powered-off VM to a vSphere template.
After conversion the VM cannot be powered on — it serves as a clone source for deploy_vm_from_template.
Args: vm_name: Name of the VM to convert (must be powered off). target: Optional 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>"
},
"name": "convert_vm_to_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| vm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |