Wait for batch
wait_for_jobPoll a batch (backoff 2s up to 10s) until every item is completed or failed, or until timeout. Pass expected_total (the total from create_photoshoot_batch) until the server reports its own. On timeout returns done=false with the latest status; call again to keep waiting.
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": {
"batch_id": "<batch_id>"
},
"name": "wait_for_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | ||
| expected_total | No | ||
| timeout_seconds | No | Default 50. |