update_device_hosts
Updates the hosts file entries for a 1Panel-managed device, enabling administrators to change local hostname-to-IP mappings and resolve hostnames correctly.
Instructions
Update device hosts
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": {
"hosts": "<hosts>"
},
"name": "update_device_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes |