vpn_disconnect
End a VPN connection by taking down the WireGuard interface or OpenVPN process. Auto-detects VPN type and returns success flag.
Instructions
Disconnect from a VPN tunnel.
Brings down the specified interface (WireGuard) or kills the OpenVPN daemon process.
Args: interface: Interface to disconnect (default wg0). vpn_type: 'wireguard', 'openvpn', or 'auto'. Auto checks whether the interface is a WireGuard tunnel.
Returns: Disconnection result with success flag.
Example: vpn_disconnect() vpn_disconnect(interface='wg1') vpn_disconnect(vpn_type='openvpn')
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "vpn_disconnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpn_type | No | auto | |
| interface | No | wg0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |