Read output
read_outputRetrieve retained stdout/stderr from exec_command or write_stdin using output_ref, paging head and rolling tail while reporting evicted byte gaps.
Instructions
Read retained command output using an output_ref returned by exec_command/write_stdin. Each stream retains the earliest output (head) plus the most recent output (rolling tail); bytes between them may be evicted and are reported via evicted_gap_bytes. Example: {"output_ref":"command:abc:stdout","offset":0,"limit":4096}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| stream | No | ||
| output_ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| limit | No | ||
| offset | No | ||
| stream | No | ||
| content | No | ||
| warnings | No | ||
| truncated | No | ||
| command_id | No | ||
| output_ref | No | ||
| next_action | No | ||
| next_offset | No | ||
| omitted_bytes | No | ||
| requested_offset | No | ||
| evicted_gap_bytes | No | ||
| operation_outcome | No | ||
| stream_output_ref | No | ||
| total_stream_bytes | No | ||
| head_retained_bytes | No | ||
| stderr_dropped_bytes | No | ||
| stdout_dropped_bytes | No | ||
| stream_dropped_bytes | No | ||
| total_retained_bytes | No | ||
| retained_start_offset | No |