Get a Wiro task
get_taskGet current task status and output. For active tasks, follow the nextAction; when complete, present all returned media resources.
Instructions
Get the current status and output of one task. By default this is an immediate check. For an active task, follow the returned nextAction instead of submitting another run. When the task is complete, 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. | |
| wait_seconds | No | Optional bounded wait before returning (0-45 seconds, default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| error | No | ||
| state | Yes | ||
| outputs | Yes | ||
| response | No | ||
| nextAction | No |