Wait for a background task
wait_for_taskWait for a background task to finish, reporting progress along the way.
kind is the one the starting tool returned: generate, download, import_video, analyze_video,
score_video or render_video. Returns the finished track (with preview_url), the download_url,
or the video result. If it is still running when the timeout passes, the result says so:
call wait_for_task again with the same task_id and kind.
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_for_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | generate | |
| task_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||