cluster_add_host
Move an existing vCenter-managed ESXi host into a target cluster. Returns success if already a member, or an error if the host is not found.
Instructions
[WRITE] Move an ESXi host that vCenter already manages into a cluster.
The host must already be in vCenter inventory (standalone or in another cluster) — this does NOT register brand-new hosts and takes no host credentials; use the vCenter UI for first-time registration. Idempotent: a host already in the cluster returns success without change. Maintenance mode is not required to join (it IS required by cluster_remove_host). Check membership first with cluster_info. Returns a status string: moved, already-in-cluster, or a not-found error.
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": {
"cluster_name": "<cluster_name>",
"host_name": "<host_name>"
},
"name": "cluster_add_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | vCenter target from config.yaml; omit for the default target. | |
| host_name | Yes | Host name as shown in vCenter inventory, usually the FQDN, e.g. "esxi-01.lab.local". | |
| cluster_name | Yes | Destination cluster (create with cluster_create). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |