Read VPN log
get_logsRetrieve recent VPN log lines for a profile to diagnose failed connections, choosing raw VPN output or PassTunnel activity events; credentials are redacted.
Instructions
Returns the last lines of a profile's VPN log, for explaining why a connection failed. source "raw" (the default): the OpenVPN, openfortivpn or openconnect output of the current or last session. source "activity": what PassTunnel did and saw, also for sessions the app or a terminal started (connecting, waiting for a fresh code, credentials sent, sign-in accepted or rejected, connected, drops, reconnects, stopped by the user), as sentences in lines and as typed events. Anything that looks like a credential is replaced by ; passwords and one-time codes are never included.
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": {
"profile_id": "<profile_id>"
},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines (or activity events) from the end of the log. | |
| source | No | raw: the VPN tool's output; activity: PassTunnel's own record of the connection. | raw |
| profile_id | Yes | A profile id from list_profiles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| lines | Yes | ||
| events | No | ||
| source | No | ||
| truncated | Yes |