read_process_output
Retrieve new stdout and stderr output from a running background process by specifying offsets and wait time. Read captured output to monitor progress or diagnose issues.
Instructions
Read captured stdout and stderr from a managed background process. Pass the previous "next_stdout_offset" and "next_stderr_offset" values as "since_stdout" and "since_stderr" to receive only new output, and "wait_ms" to block until output arrives or the process exits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID returned by start_process. | |
| wait_ms | No | Wait up to this long for new output or process exit. | |
| process_id | No | Opaque processId returned by start_process; detects stale PID references. | |
| since_stderr | No | Return stderr produced after this offset. | |
| since_stdout | No | Return stdout produced after this offset. |