Authentication and enablement
No integration. Off by default; enable it on the agent’s tools list. Read-only. It works only in a task a hook started.Inputs
Read it in two passes: call it with no arguments for the overview, then call it with the
step_id of each step whose full result you need.
Which task it reads
Only the source task of the hook that started the running task, as the platform recorded it when the hook fired (the hook’s run record, which nothing can edit), in the running task’s workspace. There is no way to name another task.Output
Overview (nostep_id):
messages: each turn’s text, file names and file ids, oldest first. Read a file’s contents withread_fileand its id. A message over 4,000 bytes is cut and markedtruncated.steps: every step except internal bookkeeping, oldest first, with a 300-byte preview of its arguments and a 1,200-byte preview of its result.result_bytesis the full result’s size.- The overview fits one budget (120 KB): past it, the oldest steps and then the oldest messages are left out and counted in
older_steps_not_shown/older_messages_not_shown. At most the latest 120 steps and 40 messages are shown.
step_id):
next_offset is set while more remains, and an offset inside a character starts at the next one.
Limits and side effects
- No side effects, no model call, no network.
- One task only: the source of the hook that started the running task.
- Message file URLs are left out (use the file ids). A step’s result can still carry the links its tool returned.
Expected errors
this task was not started by a hook: called in a task no hook started.step <id> is not a step of the source task: the step belongs to another task.step_id must be a step UUID: the input is not a UUID.offset … is past the end of the result, oroffset pages a step's result: an offset without astep_id.no workspace in context: called outside a running task.