set_wireless_passphrase
Sets or changes the WiFi passphrase on a RouterOS v7 wireless interface and can update authentication types in the same operation.
Instructions
Sets the WiFi passphrase directly on a RouterOS v7 wireless interface (/interface wifi or wifiwave2).
Notes: authentication_types: comma-separated RouterOS auth types, e.g. "wpa2-psk,wpa3-psk"; unset keeps the current setting.
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": {
"name": "<name>",
"passphrase": "<passphrase>"
},
"name": "set_wireless_passphrase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| device | No | ||
| passphrase | Yes | ||
| authentication_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |