codex_wait
Block until specified async tasks complete, then return all results. Eliminates repeated polling by waiting once for task completion.
Instructions
Block until one or more async Codex tasks complete, then return all results. Accepts a list of task_ids. This avoids repeated polling -- call once after launching codex_async tasks. Default timeout is 1800s (30 min). If a task times out, it is NOT killed -- it keeps running. You can call codex_wait again with the same task_ids to resume waiting, or use codex_status to check progress.
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": {
"task_ids": "<task_ids>"
},
"name": "codex_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_ids | Yes | List of task_ids to wait for. | |
| timeout | No | Max seconds to wait (default: 1800). The task keeps running even if this times out. |