session_write
Send text input to an owned running terminal session's stdin. Include a newline to submit answers or commands, then read the session output to observe the response.
Instructions
Send text to the stdin of an owned running terminal session. Include a newline (for example, "yes\n") to submit an answer or command. Input can trigger destructive operations and may be echoed in session output, including secrets; only send input the user authorized. accepted=true confirms the input was sent to the device connection, not that the program consumed it or completed an action. Use session_read afterward to observe the response. Repeating a write sends the input again, so do not retry blindly. Unknown, unauthorized or ended sessions are errors. This does not start a session or cancel it; use session_start or session_stop for those operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Input bytes as text, e.g. yes\n | |
| session_id | Yes | Session identifier | |
| client_token | Yes | Target client connection token, required with management access (including stdio and no-password mode). Device-scoped bearer access implicitly selects its own token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accepted | Yes | Whether the action was sent to the device connection; this does not confirm it was consumed or completed. |