Wait for a generation to finish
wait_for_generationLong-poll 1-6 generation jobs together without opening a widget. Pass id with media for one job, or ids (1 to 6 of {id, media}) for several, not both. Waits up to 15 seconds for every job to reach a terminal state, then returns compact indexed statuses and result URLs. Use job IDs returned by generate_image, generate_video, or generate_audio. For larger sets, choose groups of at most 6 and wait for each group. Permanent lookup failures are returned once without blocking the other jobs; transient lookup failures are retried within the timeout. When all_terminal is false, wait poll_after_seconds before calling again. Never call show_generation once per batch job.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A job id. | |
| ids | No | Full-profile generation jobs to wait for together. | |
| media | No | Which kind of generation the id belongs to. |