set_wifi
Change Wi-Fi network name, password, hidden status, or on/off state on a TP-Link router. Preview the plan first, then apply with confirm=true, since devices drop and must reconnect.
Instructions
Change a Wi-Fi network (index from wifi_networks): name, password, on/off, hidden. Devices on it drop and must reconnect, with the new password if it changed. Without confirm=true it only shows the plan.
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": {
"network_index": "<network_index>"
},
"name": "set_wifi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssid | No | ||
| device | No | Name of a device from devices.toml (see the 'devices' command); omit for the default device. | |
| hidden | No | ||
| confirm | No | ||
| enabled | No | ||
| password | No | ||
| network_index | Yes |