iterm2_send_control_character
Send terminal control signals like Ctrl+C, Ctrl+D, Ctrl+Z, or Ctrl+L to a specific iTerm2 pane to interrupt running processes, send EOF, suspend jobs, or clear the screen.
Instructions
Send control characters like Ctrl+C, Ctrl+D, Ctrl+Z, or Ctrl+L to an iTerm2 pane. Useful for interrupting processes or clearing the screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| control | Yes | The control character to send: 'c' for Ctrl+C (interrupt/SIGINT), 'd' for Ctrl+D (EOF/logout), 'z' for Ctrl+Z (suspend/SIGTSTP), 'l' for Ctrl+L (clear screen). | |
| session_id | Yes | The pane ID - use shorthand like 't5p2' (tab 5, pane 2) or 'w1t5p2'. Numbers are 1-based. |