list_sessions
List all active iTerm2 sessions to identify which Claude Code sessions are available for communication.
Instructions
List all registered active iTerm2 sessions.
Use this to discover which other Claude Code sessions you can communicate with.
Returns: List of active sessions with their task IDs.
Example: >>> list_sessions() ListSessionsResult( sessions=[ Session(task_id="task-a", ...), Session(task_id="task-b", ...), ], total_count=2, ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Human-readable status message | |
| sessions | No | List of active sessions | |
| total_count | No | Total number of sessions |