hosts_update
Update an existing host's settings—SNI, ALPN, port, address, tags, and more—to adjust its connection parameters and client visibility.
Instructions
Update an existing host
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": {
"uuid": "<uuid>"
},
"name": "hosts_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sni | No | New SNI | |
| alpn | No | New ALPN | |
| host | No | New host header | |
| path | No | New URL path | |
| port | No | New port | |
| tags | No | Array of tags (uppercase letters, numbers, underscores and colons only; max 36 chars each, up to 10 tags) | |
| uuid | Yes | Host UUID to update | |
| mapper | No | Outbound field operations per client format. Each op is {op:"copy",from,to} | {op:"set",value,to} | {op:"unset",to} | |
| remark | No | New remark/name | |
| address | No | New address | |
| isDisabled | No | Enable/disable host | |
| fingerprint | No | New TLS fingerprint (free-form) | |
| securityLayer | No | New security layer | |
| internalSquads | No | Which internal squads may see this host (replaces excludedInternalSquads) | |
| mihomoIpVersion | No | IP version used by Mihomo clients | |
| serverDescription | No | New server description | |
| pinnedPeerCertSha256 | No | Pin peer certificate by SHA-256 fingerprint | |
| verifyPeerCertByName | No | Verify peer certificate by name | |
| excludeFromSubscriptionTypes | No | Subscription types to exclude this host from |