Rename a machine
rename_vmChanges the hostname, inside the guest and in the console. Scope: vms.action.
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": "<vm>",
"hostname": "<hostname>"
},
"name": "rename_vm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | Machine id, as returned by list_vms or create_vm. | |
| hostname | Yes | Letters, digits, dots and hyphens; no leading, trailing or doubled separator. |