wait_for_output
Captures new terminal output from a session, waiting until the session is silent or a deadline expires. Returns partial output if the deadline is reached.
Instructions
Wait for newly arriving PTY output without sending input.
Requires an existing session created via create_session(session_id, cwd).
This waits for new PTY bytes to arrive. After the first new output is
observed, it continues draining until the PTY is silent for
PILOTY_QUIESCENCE_MS (default 1000ms) or until deadline_s expires.
deadline_s must be at most 300 seconds. If the deadline expires after some
output has already been captured, partial output is returned with
outcome="deadline_exceeded".
If you need to wait specifically for a shell prompt, use
wait_for_shell_prompt().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |