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
Control characters
Sending
\x03 interrupts the foreground job and leaves the shell running. Use send a signal when you need to signal the shell’s own process, whatever is in the foreground.Wait for a prompt
The call returns once the bytes are written. To drive a sequence of prompts, read the output and wait for each prompt before the next line.pty send writes and returns. pty attach shows the live terminal, and you type the next line there.
Endpoint
POST /v1/agents/runtime/{runtime_id}/pty/{session_id}/input