list_sessions
Retrieve a list of all active terminal sessions, including SSH and local connections, to check statuses and obtain session IDs.
Instructions
List all currently active terminal sessions (SSH and local) managed by this server.
USAGE GUIDELINES:
- Use this tool to discover existing sessions, check connection statuses, and retrieve active session_ids.
- Recommended prerequisite: Call this tool before executing commands if you need to resume or verify an existing session.
- Do NOT use this tool if you already know the session_id and just want to run commands directly.
ALTERNATIVES:
- If you want to create a new session instead of listing existing ones, use create_local or connect_ssh.
- If you want to stop/close an active session, use disconnect.
Returns:
A list of dictionaries, each containing:
- session_id: Unique identifier of the session.
- type: Either 'ssh' or 'local'.
- host (SSH only): The remote hostname connected to.
- port (SSH only): The remote port connected to.
- shell (local only): The shell executable running.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |