wait_image_task
Poll an asynchronous image task within a bounded timeout, saving the image when it completes; if time runs out, return the task ID for a later status check.
Instructions
有界轮询,NOT_START 排队和 IN_PROGRESS 处理中继续等待,成功后落盘;只读查询有限重试计入等待时限。超时返回 task_id/wait_timed_out,云端任务继续;可稍后再次查询。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "wait_image_task"
}
}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 | ||
| reused | 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 | ||
| idempotency_key | No | ||
| auto_poll_interval | No |