iterm2_read_pane
Read the on-screen text from a specific iTerm2 terminal pane to capture its current output. Provide the pane's session ID to retrieve the visible buffer contents for inspection or further processing.
Instructions
Read the screen buffer contents of a specific iTerm2 pane. Returns the visible text in the terminal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The pane ID - use shorthand like 't5p2' (tab 5, pane 2) or 'w1t5p2' (window 1, tab 5, pane 2). Numbers are 1-based to match iTerm2's UI. |