Wait for a Wiro workflow run
wait_for_workflow_runCheck a workflow run and wait up to a set time for it to finish, returning status, resolved outputs, and failed steps. Call again with the same run token while it runs; use 0 for a single check.
Instructions
Check a workflow run and wait for it to finish, up to wait_seconds. Returns its status, the resolved outputs (files and text) and any steps that failed. Use wait_seconds 0 for a single check. When it is still running, call this again with the same run token; never start the run again. When the run is complete, present every returned media resource in the user-facing response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_seconds | No | How long to wait for the run to finish (0-600 seconds, default 45). | |
| debug_node_id | No | Optional step id ("node-...") whose model task details to include, to debug a failed step. | |
| workflowtoken | Yes | The run token from run_workflow, resume_workflow_run or list_workflow_runs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| debug | No | ||
| nextAction | No |