Show all active terminal sessions managed by the iTerm2 MCP server.
Lists all active terminal sessions managed by the iTerm2 MCP server, showing session IDs, commands, control modes, runtime, and output lines. Use this to monitor running terminals and identify sessions for reading output, sending commands, or termination.
/plugin marketplace add thamam/A2X-marketplace/plugin install thamam-iterm2-control-plugins-iterm2-control@thamam/A2X-marketplaceShow all active terminal sessions managed by the iTerm2 MCP server.
/list-terminals
When this command is invoked:
list_sessions toolActive Terminal Sessions:
═══════════════════════════════════════════════════
Session 1:
ID: 550e8400-e29b-41d4-a716-446655440000
Command: npm run dev
Control: claude
Runtime: 2m 15s
Lines: 342
Session 2:
ID: 660e8400-e29b-41d4-a716-446655440001
Command: python -i
Control: shared
tmux: debug-session
Runtime: 45s
Lines: 23
Total: 2 active sessions
Commands:
- Read output: read_session_output(session_id)
- Send command: send_to_session(session_id, "command")
- Terminate: terminate_session(session_id)
- Attach (tmux): tmux attach -t {tmux_session}
claude: Claude has controlshared: Both Claude and user can control (tmux)user: User has primary controlclaudecreate_iterm_tab (no tmux)sharedcreate_shared_sessionuserNo active terminal sessions.
Create one with:
/create-terminal [command]
/shared-session <name> [command]
Active Terminal Sessions:
═══════════════════════════════════════════════════
ID: abc-123
Command: npm test
Control: claude
Runtime: 12s
Lines: 47
Total: 1 active session
Active Terminal Sessions:
═══════════════════════════════════════════════════
1. npm run dev (claude) - 5m 30s - 1,245 lines
ID: abc-123
2. python -i (shared: debug-py) - 2m 10s - 89 lines
ID: def-456
Attach: tmux attach -t debug-py
3. pytest tests/ (claude) - 45s - 234 lines
ID: ghi-789
Total: 3 active sessions
/create-terminal - Create new session/shared-session - Create shared tmux sessionterminate_session(id) to clean up old sessions