Get workflow run traces
get_workflow_run_tracesGet the full per-step execution trace of a run by run id (paged). Each step lists its blocks with the input each consumed and the output it produced, plus any error_message, and the variable scope captured at that step. Use this to debug why an expression or block produced the wrong value. Large captured values are shortened, with a marker saying so: a scope entry may point at the block output beside it rather than repeat it (the value is in the same trace). On UNATTENDED runs only — a live endpoint serve, a schedule falling due — text copied verbatim from the definition (a literal expression) is also replaced by its path there; read it with get_workflow_version. Those runs are shortened harder overall too, so to capture a value in full, re-run it yourself (run_workflow / preview_dynamic_endpoint / run_schedule_now) — runs you trigger keep everything, literals included.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | the run id returned by run_workflow | |
| page_size | No | maximum number of step traces to return in this page | |
| page_token | No | token from a previous response's next_page_token to fetch the next page |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | ||
| next_page_token | Yes |