wait_for_output
Pause execution until a specified text pattern appears in a CLI process output, with a configurable timeout.
Instructions
Wait until a specific text pattern appears in the output.
Args: pid: The process ID returned by start_program(). pattern: The text to wait for. timeout: Maximum time to wait in seconds.
Returns: The output captured so far, or an error/timeout message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| pattern | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |