wait_for_shell_prompt
Waits for a shell prompt to appear in an active terminal session, returning any output until the prompt is detected or timeout is reached. Ensures the shell is ready for commands.
Instructions
Wait until a shell prompt is detected.
Requires an existing session created via create_session(session_id, cwd).
This repeatedly ingests new PTY output and re-runs prompt detection until a
shell prompt is visible or until deadline_s expires. Any output consumed
during that wait is returned in output.
If the remote shell uses a customized prompt that the default heuristics
misclassify, set shell_prompt_regex via configure_session(...).
deadline_s must be at most 300 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |