subagent_wait
Wait until any specified subagent job finishes or sends a message/question, then return the event. Call after starting jobs to avoid polling.
Instructions
Wait until one of the given jobs finishes, or a subagent sends a message or question, then return what happened. In Claude Code a long wait moves to the background on its own and you get a notification when it returns, so call this after starting jobs instead of polling.
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": {
"job_ids": "<job_ids>"
},
"name": "subagent_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_ids | Yes | ||
| timeout_seconds | No |