it2 session lookup

Look up session relationships and hierarchy

Description

Commands for looking up session relationships and hierarchy information.

These commands help you navigate the session tree structure by finding
parent-child relationships, split trees, and container lookups.

Commands

Options inherited from parent commands

--format (default "text")

Output format (text, json, yaml) - affects how command results are displayed

--timeout

Timeout for API operations - how long to wait for iTerm2 to respond

--url

WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2

See Also

Examples

  # Get the parent session
  it2 session lookup parent

  # Get the root of a split tree
  it2 session lookup split-root sess_abc123

  # Get which tab contains a session
  it2 session lookup tab

  # Get which window contains a session
  it2 session lookup window