Inspect a subagent or read its event log
pollMonitor subagent status with a persistent snapshot of lifecycle, active tool calls, turn timing, and errors, or replay chronological event logs with paging and cursor support.
Instructions
Two observation modes. detail='inspect' (default): a persistent snapshot of what the subagent is doing — lifecycle fields, pending permission, current/latest turn timing and duration, last actual output, active tool calls (merged by id, with elapsed ms), current plan step, latest text, latest error, and last-activity/last-content ages. It is independent of the event log: unaffected by reads or by buffer eviction. detail='logs': the chronological normalized event log (message/thinking/tool/plan/usage/mode/queued/turn_start/turn_end/permission_*) with seq and bridge receipt timestamps, paged by an implicit read cursor; 'limit' bounds each page and nextCursor/hasMore continue it, droppedEvents counts buffer-evicted events. 'since': in inspect mode, a snapshot cursor — wait_ms blocks for events newer than it; in logs mode it replays events after that seq without moving the read cursor. wait_ms blocks briefly while a turn can still produce events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Subagent handle returned by spawn, e.g. 'coder-auth' | |
| limit | No | logs only: max buffered events consumed this call; page via nextCursor/hasMore | |
| since | No | inspect: wait_ms blocks for events newer than this snapshot cursor. logs: replay events after this seq without moving the read cursor | |
| detail | No | inspect (default): persistent snapshot; logs: paged event log | |
| wait_ms | No | Block up to this many ms for new events while a turn is active (default 0) |