Watch live or recent task stream transcript
watch_taskReads the transcript tail of an agy run to check progress, wait for completion, or cancel an owned task, returning final results and failure reasons.
Instructions
Read transcript tail of an agy run (snapshot, not follow; no args = latest run). Digest: steps (50 most recent), step_count (total; step_count > steps.length means clipped), phase, elapsed_seconds, usage_latest, content (raw tail). Finished runs carry complete final result (failed run says why). wait: true blocks until finished in one call (not combinable with cancel; cannot await foreign run). cancel: true stops owned run (foreign/ambiguous reported ignored with hint).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Block until finished and return result in one call. Incompatible with cancel; cannot await foreign run. | |
| cancel | No | Stop running task owned by this process and report cancelled. | |
| tail_lines | No | Trailing lines (1..2000, default 400; 0 returns all, capped at 200k chars). | |
| stream_file | No | Transcript or task ID. Omit for latest run. |