it2 tab tree
Show split tree structure for a tab
Synopsis
it2 tab tree [<tab-id>] [flags]
Description
Display the split pane tree structure for a tab.
Shows the hierarchical structure of split containers and sessions within a tab.
The tree can be displayed visually or as raw JSON for programmatic access.
If no tab ID is provided, uses the current tab.
Examples
Show tree for current tab
$ it2 tab tree
Show tree for specific tab
$ it2 tab tree 13
Get raw JSON structure
$ it2 tab tree --format json
# Use with jq to extract session IDs
$ it2 tab tree --format json | jq '.. | .session?.unique_identifier? | select(. != null)'
Options
-
--format(default "tree") - Output format (tree|json)
Options inherited from parent commands
-
--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
- it2 tab - Manage iTerm2 tabs
- it2 tab activate - Activate a tab
- it2 tab clear-color - Clear the color of a tab
- it2 tab clear-title - Clear the title of a tab
- it2 tab close - Close one or more tabs
- it2 tab create - Create a new tab
- it2 tab current - Show the current tab ID
- it2 tab get-color - Get the current color of a tab
- it2 tab get-info - Get detailed information about a tab
- it2 tab get-title - Get the title of a tab
- it2 tab list - List tabs in windows
- it2 tab reorder - Reorder tabs within a window
- it2 tab set-color - Set the color of a tab
- it2 tab set-layout - Set the layout of a tab
- it2 tab set-title - Set the title of a tab
- it2 tab splits - Show split pane layout and coordinates