setGatewayWanConnect
Manage a gateway's WAN connection by connecting or disconnecting a specified WAN port. Provide gateway MAC, port ID, and action to control internet uplink status.
Instructions
Connect or disconnect a gateway WAN port.
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": {
"gatewayMac": "<gatewayMac>",
"portId": "<portId>",
"action": "<action>"
},
"name": "setGatewayWanConnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to connect or disconnect the WAN port | |
| portId | Yes | ||
| siteId | No | ||
| gatewayMac | Yes |