process_wait
Wait for a background process to finish and retrieve its exit code plus new output offsets in a single call, with a timeout that leaves the process running.
Instructions
Wait until a managed background process exits or the timeout expires. Returns the exit code and output offsets without requiring repeated process_status calls; a timeout does not stop the process.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID returned by start_process. | |
| process_id | No | Opaque processId returned by start_process; detects stale PID references. | |
| timeout_ms | No | Maximum time to wait. Defaults to 30000 ms. | |
| since_stderr | No | ||
| since_stdout | No | ||
| include_output | No | Include a bounded stdout/stderr page with the exit status. | |
| max_output_bytes | No |