register_session
Register the current iTerm2 session under a task ID so other Claude Code sessions can find and communicate with it.
Instructions
Register the current iTerm2 session with a task ID.
This allows other Claude Code sessions to find and communicate with this session using the task ID.
Args: task_id: Unique identifier for this session (e.g., "task-a", "feature-auth"). Must be alphanumeric with hyphens/underscores, max 64 chars.
Returns: Result indicating whether registration succeeded.
Example: >>> register_session("task-a") RegisterSessionResult(success=True, task_id="task-a", ...)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable status message | |
| success | Yes | Whether the registration succeeded | |
| task_id | No | The registered task ID | |
| session_id | No | The iTerm2 session ID |