Applies a PTY control operation to an existing session. The action field selects the operation; the other fields in PtyControlParameters are interpreted only when they are relevant to the chosen action.
resize: cols and rows are required and must each be in 1..=1000. A 0 or out-of-range value returns 400. The new winsize is applied to the PTY master and the kernel delivers SIGWINCH to the foreground process group.
signal: signal is the POSIX signal name (for example ‘SIGTERM’, ‘SIGHUP’, ‘SIGINT’, ‘SIGUSR1’). Unknown signal names return 400. The signal is delivered to the slave’s foreground process group via killpg(2). If the shell has already exited and there is no foreground process group, returns 400.
close: terminates the session. Sends SIGHUP to the foreground process group (best-effort; ignored if the shell has already exited) and drops the session from the server’s session cache. A subsequent connect with the same session_name will create a fresh PTY session.
Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The client-chosen PTY session name. Must be 1..=256 ASCII letters, digits, '-' and '_'.