read_process_output
Read new output from a process log incrementally by byte offset, with follow, streaming, and stdout/stderr options, returning the next offset to read.
Instructions
Read new output from a started process log, incrementally by byte offset. Pass follow=true to briefly wait for new output; stream=true to additionally push each new chunk as a notifications/message (and notifications/progress when the client sent a progressToken) as it arrives. which selects stdout (default) or stderr. Returns the next offset to use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| which | No | Which stream to read (default stdout) | |
| follow | No | Wait briefly for new output if at EOF | |
| handle | Yes | ||
| offset | No | Byte offset to read from; default 0 | |
| stream | No | Push new chunks as notifications/message while following, then return | |
| streamMs | No | Max ms to stream (default min(scriptTimeoutMs/4, 5000)) | |
| binaryOutput | No |