add_tunnel
Save local, remote, or SOCKS5 SSH tunnels through a vault host, routing ports without exposing credentials, and optionally start them immediately.
Instructions
Save a tunnel through a host (needs vault:edit; for a team's host, one your access reaches): local (ssh -L), remote (ssh -R) or dynamic (SOCKS5, ssh -D).
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": {
"name": "<name>",
"kind": "<kind>",
"via": "<via>"
},
"name": "add_tunnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | Yes | The host it goes through: a host of the person's vault, by name. | |
| kind | Yes | ||
| name | Yes | ||
| port | No | The port it listens on: on this computer (local, dynamic) or on the host (remote). For local, default: the target's port. | |
| start | No | Start it right away (needs the tunnels scope on the host). Default false. | |
| target | No | host:port it leads to (local, remote). Not for dynamic. |