ck_result_peek
Read specific byte ranges from a completed delegate run's stdout to avoid loading large outputs into context. Use the result_ref and package_root to locate stored output, optimizing token usage.
Instructions
Peek at the full stdout of a previously completed ck_delegate embedded run without loading it all into context. Use result_ref and package_root returned by ck_delegate to locate the stored output. Supports byte-range reads: pass peek_bytes to limit how much to load, and offset to skip ahead. Use result_length (returned by ck_delegate) to decide whether to peek, pass the ref downstream, or skip loading entirely. This is the RLM variable-encapsulation pattern: treat large sub-agent outputs as named references, not inline blobs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Byte offset to start reading from (default 0). | |
| package_root | Yes | package_root returned by ck_delegate for the completed embedded run. | |
| peek_bytes | No | How many bytes to read (default 2000, max 32000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes_read | No | ||
| output | No | ||
| total_bytes | No | ||
| truncated | No |