cleanup_dead_sessions
Cleans up dead SSH sessions by terminating any session whose connection has closed. Optionally waits for a specified age before removal.
Instructions
Kill all sessions where the SSH connection has closed.
Args: max_age_seconds: Optional. Only kill sessions that have been dead for at least this many seconds. If omitted, all dead sessions are killed immediately.
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": "cleanup_dead_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_age_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |