cleanup_sessions
Remove stale, inactive terminal sessions to clear accumulated tabs. Set a threshold in minutes and optionally close the corresponding terminal tabs.
Instructions
Remove stale terminal sessions that have been inactive. Use periodically to clean up accumulated tabs. Sessions inactive longer than inactive_minutes (default: 30) are removed. Set close_tabs to true to also close the terminal tabs.
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_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| close_tabs | No | If true, also closes the terminal tabs for stale sessions (default: true) | |
| inactive_minutes | No | Minutes of inactivity before a session is considered stale (default: 30) |