read_step_output
Retrieve truncated step output or input by specifying step ID, offset, and character limit to get full context from a campaign DAG.
Instructions
Read a range from a step's output (or input) field.
Counterpart to the preview-plus-seek contract in get_my_context:
when an upstream preview is truncated, call this with the
step_id from the preview to pull the full (or a slice of) text.
Args:
step_id: The step whose output you want to read. Does not have
to be your own step — any step in the same campaign's DAG
is readable.
offset: 0-indexed character offset to start from.
limit: Max characters to return (default 8000, capped at 32000
to avoid blowing the agent's context).
field: "output" (default) or "input".
Returns::
{
"step_id": N,
"field": "output",
"content": "...",
"offset": 0,
"limit": 8000,
"total_chars": N,
"has_more": bool, # True if offset+limit < total_chars
}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step_id | Yes | ||
| offset | No | ||
| limit | No | ||
| field | No | output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||