add_wireguard_peer
Add a WireGuard peer to a specified interface by providing public key and allowed address, with optional endpoint settings.
Instructions
Tambah peer WireGuard ke sebuah interface. BUTUH MIKROCLAW_ALLOW_WRITE=true.
Args: interface: nama interface WireGuard, mis. 'wg0'. public_key: public key milik peer. allowed_address: subnet yang diizinkan, mis. '10.10.0.2/32'. endpoint_address: (opsional) alamat endpoint peer. endpoint_port: (opsional) port endpoint peer.
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": {
"interface": "<interface>",
"public_key": "<public_key>",
"allowed_address": "<allowed_address>"
},
"name": "add_wireguard_peer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | Yes | ||
| public_key | Yes | ||
| endpoint_port | No | ||
| allowed_address | Yes | ||
| endpoint_address | No |