Wait for a Wiro task
wait_for_taskWait for an active Wiro AI task to finish without submitting a new model run. If it is still running, repeat the returned nextAction, then present all media results when complete.
Instructions
Wait for an existing Wiro task without submitting a new model run. If it is still running, repeat the exact nextAction returned by this tool. Do not resubmit the original request. A completed tool-call turn may return a run_model continuation template after its calls have been executed. When it completes, present every returned media resource in the user-facing response instead of reporting only task metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskid | No | The task ID (alternative to tasktoken). | |
| tasktoken | No | The task token returned from run_model. | |
| timeout_seconds | No | Maximum seconds to wait. The 45-second default is safe for clients with a 60-second tool timeout. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| error | No | ||
| state | Yes | ||
| outputs | Yes | ||
| response | No | ||
| nextAction | No |