convert_vm_to_template
Convert a powered-off VM to a vSphere template to freeze a golden image for cloning. After conversion, the VM serves only as a clone source.
Instructions
[WRITE] Convert a powered-off VM to a vSphere template.
Returns a status string. Use this to freeze a golden image: afterwards the VM cannot be powered on and serves only as a clone source for deploy_vm_from_template.
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 | Optional vCenter/ESXi target name from config. | |
| vm_name | Yes | Name of the VM to convert (must be powered off). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |