send_line
Send a command line to an active PTY session, automatically appending a newline, and wait for the output until the session becomes quiet or a deadline expires.
Instructions
Send one newline-terminated line to a stateful PTY session.
Requires an existing session created via create_session(session_id, cwd).
After sending line + "\n", this drains newly produced PTY bytes until the
PTY is silent for PILOTY_QUIESCENCE_MS (default 1000ms) or until
deadline_s expires.
deadline_s must be at most 300 seconds.
Common SSH pattern:
create_session(session_id, cwd)
send_line(session_id, "ssh host", deadline_s=2)
wait_for_shell_prompt(session_id, deadline_s=30)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |