runninghub_wait_task
Polls a RunningHub task until it completes or times out, returning result file URLs.
Instructions
轮询等待 RunningHub 任务完成(每 5 秒查询一次,直到 SUCCESS / FAILED 或超时)。返回结果文件 URL 列表。
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": {
"taskId": "<taskId>"
},
"name": "runninghub_wait_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | 任务 ID | |
| apiVersion | No | 查询接口版本:v2=标准模型 API 任务(/openapi/v2/query);legacy=工作流/AI应用任务(/task/openapi/outputs)。不确定时先试 v2,失败再用 legacy | v2 |
| timeoutSec | No | 最长等待秒数,默认 600 | |
| intervalSec | No | 轮询间隔秒数,默认 5 |