process_write
Send commands or data to a running process's standard input, enabling control of interactive programs like SSH, GDB, and REPLs.
Instructions
Write content to a process's stdin. Only available while the process is running.
Input you write reappears in the output stream (terminal echo) — treat it as your own input, not program output, and do not re-send it. To interrupt a PTY process, send and a carriage return as two separate writes (Ctrl+C then Enter — ConPTY is line-buffered; split delivery is measurably more reliable); a KeyboardInterrupt traceback in output is expected, not an error. process_signal/process_kill are fallbacks — see their descriptions for the PTY signal mapping (CTRL_C_EVENT is a graceful interrupt, not a hard stop).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Internal process ID. | |
| content | Yes | Content to write to stdin. |