wait_image_task
Poll an asynchronous image-generation task until it finishes, save the output when ready, and return a timeout status with the task ID if processing continues so you can query again later.
Instructions
有界轮询,NOT_START 排队和 IN_PROGRESS 处理中继续等待,成功后落盘;只读查询有限重试计入等待时限。超时返回 task_id/wait_timed_out,云端任务继续;可稍后再次查询。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| output_dir | No | 可选绝对输出目录;默认配置目录。异步任务查询默认沿用提交目录。 | |
| poll_interval | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| note | No | ||
| files | No | ||
| group | No | ||
| usage | No | ||
| status | Yes | ||
| task_id | No | ||
| warning | No | ||
| progress | No | ||
| response | No | ||
| next_tool | No | ||
| output_dir | No | ||
| fail_reason | No | ||
| save_status | No | ||
| wait_timed_out | No | ||
| download_errors | No |