send_input
Send input to an interactive PTY session and wait for output to stabilize, with optional pattern matching to block until specific output appears.
Instructions
Send input and wait for output to settle. Returns cursor_start/cursor_end for command boundary tracking, and is_complete (false = timeout, use read_output for remaining output). If wait_for is set, blocks until the pattern matches (combines send_input + read_output wait_for in one call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| raw | No | If true, send input exactly as-is without appending a newline. Use for interactive menus and single-character inputs (e.g. menu selections, y/n prompts). Follow with send_control('enter') when ready to submit. | |
| session_id | Yes | ||
| timeout_ms | No | Max wait time in ms (default: 5000, max: 30000) | |
| wait_for | No | Regex pattern to wait for after sending input. Combines send_input + read_output(wait_for=...) into one tool call. | |
| wait_for_timeout | No | Timeout in seconds for wait_for (default: 10, max: 600) |