Wait for Codex
codex_waitWait for one or all Codex threads to finish or request input, then return their reports.
Instructions
Wait for turns on one or more Codex threads, then return their reports. mode "all" (default) returns when every thread is done or blocked on a request; "any" returns as soon as one is.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "codex_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | all | |
| thread_id | No | ||
| thread_ids | No | Several threads (batch wait). | |
| wait_seconds | No | Seconds to block before returning a progress snapshot (default 120). Returns early when the turn finishes or Codex needs an answer. The turn keeps running after this returns. |