ssh_disconnect
Terminate an active SSH connection by providing the session ID. Frees server resources and confirms disconnection.
Instructions
Close an SSH connection session.
This tool terminates an SSH session and frees associated resources.
Args: params (DisconnectInput): Validated input parameters containing: - session_id (str): SSH session identifier to close
Returns: str: Disconnection confirmation
Examples: - Use when: "Close SSH connection to server" -> params with session_id="admin@192.168.1.100:22" - Use when: "Done working with server, disconnect" -> params with session_id (from ssh_connect) - Don't use when: Session doesn't exist (ssh_status will show this) - Don't use when: Need to continue working with the server
Error Handling: - Returns "Error: Session not found" if session_id is invalid - Returns success even if session was already closed
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": {
"params": "<params>"
},
"name": "ssh_disconnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |