Remove WireGuard peer
wg_peer_removeRemoves a peer from a WireGuard interface. Use the confirm flag to apply changes; otherwise runs as a dry-run.
Instructions
Remove a peer from a WireGuard interface (wg set ... remove). Mutating: requires --enable-write, and runs as a dry-run unless confirm:true.
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": {
"iface": "<iface>",
"public_key": "<public_key>"
},
"name": "wg_peer_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iface | Yes | WireGuard interface, e.g. wg0 | |
| confirm | No | set true to actually apply (otherwise dry-run) | |
| public_key | Yes | peer public key to remove |