ssh_close_forward
Closes an active SSH port forward by providing the session and forward IDs. Stops the forwarded connection and releases resources.
Instructions
Close a specific port forward.
Args: session_id: The session ID returned by ssh_connect. forward_id: The forward ID returned by ssh_forward_port.
Returns: Confirmation message.
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": {
"session_id": "<session_id>",
"forward_id": "<forward_id>"
},
"name": "ssh_close_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| forward_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |