POST /v1/agents/runtime/{runtime_id}/pty/{session_id}/input
Writes to the session’s terminal exactly as if it had been typed.
Parameters
Supply exactly one of the following.
The Python SDK picks the right one for you: pass
str and it sends data, pass bytes
and it base64 encodes into data_base64.
Response (PtyInputResponse)
Common control characters
Sending
\x03 writes the interrupt character to the terminal, which the guest’s line
discipline turns into SIGINT for the foreground process group. This is usually what you
want. Use send signal
when you need to signal the session’s own process regardless of what is in the foreground.Waiting for a prompt
Input is asynchronous: the call returns once the bytes are written, not once the program has reacted. When you need to drive a sequence of prompts, stream the output and wait for each prompt before sending the next line.pty send writes and returns. pty attach shows the live terminal, and you type the next line there.