Wait for Job
wait_jobWait for a long-running job and return the resolved result — a bounded long-poll. Includes template preparation (kind="template", id=jobId), media import, render, compose, consult, suggestions and preview. If still running, call wait_job again with the same arguments; work continues server-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | kind="media": mediaItemId returned by import/generate/finalize/import_resource. kind="render": renderId. kind="compose": composeJobId. kind="consult": consultJobId. kind="suggestions": mediaItemId. Generic kinds use the jobId from the enqueue receipt. | |
| kind | Yes | What to wait on, including template preparation (kind="template"). | |
| projectId | No | Required when kind="render", "compose", or "consult". | |
| timeoutMs | No | Maximum wait in ms (default 30 min for render/compose, 5 min for suggestions). |