update_wireguard_peer
Modify an existing WireGuard peer by ID in pfSense, including endpoint, keys, keepalive, enabled state, and tunnel, with optional immediate apply.
Instructions
Update an existing WireGuard peer by ID
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": {
"peer_id": "<peer_id>"
},
"name": "update_wireguard_peer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tun | No | Parent tunnel name (upstream references the tunnel by name) | |
| port | No | Peer endpoint port | |
| descr | No | Description | |
| enabled | No | Whether the peer is enabled | |
| peer_id | Yes | Peer ID (from search_wireguard_peers) | |
| endpoint | No | Peer endpoint hostname or IP | |
| keepalive | No | Persistent keepalive interval in seconds | |
| publickey | No | WireGuard public key | |
| presharedkey | No | Pre-shared key | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||