Read Topology
read_topologyRead current work, a particular work item, or historical trails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Paging — max entries to return (default 20, max 100). Ignored unless trail is set. | |
| trail | No | Trail paging (topology 3.0) — when set, returns { container_id, trail, entries, has_more } from the did trail (the client-written narrative: ts, text, work_ref?, by?) or the ops audit (worker-only: ts, action, ref?, detail?). Newest-first; pair with before/limit to walk deeper — retention is keep-everything, so the full history is reachable. | |
| before | No | Paging — ISO timestamp; only entries with ts < before are returned. Pair with limit. Ignored unless trail is set. | |
| contract | No | Help mode — return the complete contract with no operation performed. | |
| work_item | No | Work-item paging — when set, finds the work item by `what` across all four groups (active/paused/blocked/done) and returns { container_id, work_item: { group, item } } with the full item including state/next, all annotations, refs, and group-specific fields. Use to revive a paused thread when boot trim hid the item's full context. Returns an error if no item with the given `what` exists. Mutually exclusive with trail. | |
| projection | No | Read grain (topology 3.0). 'full' (default): the complete state row (work + scalars — work items carry state/next) plus the did tail (12) and ops tail (10) from their tables, newest-first. 'summary': the hot multi-window handoff read — work headers with per-group counts + the did tail, no ops. Ignored when trail or work_item is set (those keep their own focused shapes). | |
| container_id | Yes | Container ID — without trail or work_item, returns { projection, state } (see projection). worker_meta is not returned (platform-internal). |