iterm2_send_text
Send typed text or commands to a specific iTerm2 terminal pane by its ID, with an option to press Enter automatically to execute the command or leave it unexecuted for typing only.
Instructions
Send text/commands to an iTerm2 pane as if typed by the user. Can optionally press Enter after the text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text or command to send to the pane. | |
| newline | No | Whether to press Enter after the text (default: true). Set to false to type text without executing. | |
| session_id | Yes | The pane ID - use shorthand like 't5p2' (tab 5, pane 2) or 'w1t5p2'. Numbers are 1-based. |