Wait for a Wiro task
wait_for_taskCheck the status of an existing Wiro task and retrieve all media resources when it finishes. Avoids resubmitting the model, so you can safely wait and collect results.
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. Never call run_model again for the same task. 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 |