it2 session prompt

Get shell prompt metadata for a session

Synopsis

it2 session prompt [session-id] [flags]

Description

Get shell prompt metadata for a session (requires shell integration).

This command retrieves information about the current shell prompt including:

  • Prompt state (EDITING, RUNNING, FINISHED)
  • Working directory
  • Current command
  • Exit status (when finished)
  • Prompt/command/output coordinate ranges

Requires shell integration to be enabled in the session.

Examples:

Get prompt info for current session

$ it2 session prompt

Get prompt info for specific session

$ it2 session prompt ABC12345

Get as JSON

$ it2 session prompt --format json

Options

--format (default "table")

Output format (table|json|yaml|text)

--timeout (default "5s")

Command timeout

--url (default "ws://localhost:1912")

iTerm2 WebSocket URL

See Also