Wait for jobs
wait_for_jobsWaits (up to timeout_seconds, at most 50) until the given jobs finish, then returns them — cheaper than polling get_jobs. Images take ~10–40 s, videos 1–5 min: call again if all_finished is false.
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": {
"job_ids": "<job_ids>"
},
"name": "wait_for_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_ids | Yes | Job ids (job_…) returned when the jobs were started. | |
| timeout_seconds | No | How long to wait, in seconds (1–50, default 45). Call again if not all finished. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||