respond
Send text input (passwords, confirmations, commands) to a running terminal process's stdin, enabling interactive command control.
Instructions
Write text to a running command's stdin. Works for prompts (y/n,
passwords), shell input, or any text the process expects.
PARAMETER GUIDANCE: text auto-appends \n if missing. For control
keys use send_control — AI frameworks strip control bytes. Raise
pause_timeout (not total_timeout) for slow responses after input.
Raises ValueError if command_id is invalid or completed.
WHEN NOT TO USE: Inside zellij, prefer multiplexer CLI via execute.
SIDE EFFECTS: Writes to stdin; may trigger output, state change, or exit.
RETURNS:
- {"status": "partial", "output": str, "command_id": str}
- {"status": "completed", "output": str, "exit_code": int}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to write to stdin (e.g. 'y', a password, a shell command) | |
| command_id | Yes | The command_id from a status='partial' response. Raises ValueError if invalid or already completed | |
| pause_timeout | No | Seconds of silence before returning (> 0, ≤ total_timeout) | |
| total_timeout | No | Hard cap on call duration in seconds (≥ pause_timeout) |