Wait for background work
wait_for_jobsBlocks until queued or running background work finishes, fails, stops, or times out, reporting progress and signaling when to read results; scope by job or project.
Instructions
Block until background work changes state: returns as soon as a job finishes (done / failed / stopped), or when nothing is queued or running, or after timeoutSeconds (max 50). With jobId, waits for that job only; with projectId, for that project's jobs. Call it repeatedly after any tool that queued work until idle is true, then read the results. Reports progress of jobs still running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | Wait for this job only. | |
| projectId | No | Only this project's jobs (a finished fetch can start brainstorming, then a check). | |
| timeoutSeconds | No | Max seconds to wait (default 45, max 50). |