Built-in tools›Agent orchestration
Wait for tasks
task_wait- Group
- Agent orchestration
- Turned on by
- Comes with any tool that starts background work (subagents, workflows, background shells).
- Approval
- Not reviewed: runs without asking, within the limits on this page.
- Profile key
tool.task_wait.description
Lets the model pause until the background tasks it names have finished, then hands it all their results in one answer.
With several tasks named, it waits for all of them; an early result does not end the wait.
Limits
- The whole answer is capped at 64 KiB, split evenly across the results.
Good to know
- Reaching the timeout is not a failure. The tasks keep running, and the model can wait again or carry on.
- A result the model does not wait for still arrives on its own, as a message from Mewrk. If the conversation is idle by then, a new turn starts right away to deliver it, even when the conversation is not on screen.
- On a model with Asynchronous tool calls, a subagent's or workflow run's result goes to the output of the
agent_spawnorworkflowcall that started it, even when the model waited for it, and the wait only reports that it arrived. A background command's result, and that of a subagent resumed with send_message, always comes in the wait or as a message. - Waiting stops nothing. The model stops a subagent, workflow or background command with task_stop; you can stop one from its row in the Tasks pane (More options → Tasks).
Parameters
| Parameter | Type | Details |
|---|---|---|
tasksTasks | string[] | Omit: all background shells you started (not terminals or dev servers). |
timeout_secondsTimeout (seconds) | integer | Not a failure; your final reply stops what still runs. Default 60 |