Wait for Codex progress
codex_waitLong-poll an active Codex turn until it completes, fails, requests approval, or times out, then use the returned cursor to continue.
Instructions
Long-poll an active turn until it completes, fails, requests approval, is interrupted, or reaches the timeout. Continue with the returned eventCursor.
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": {
"threadId": "<threadId>"
},
"name": "codex_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes | Codex thread id. | |
| maxEvents | No | ||
| timeoutMs | No | ||
| afterSequence | No | Cursor returned by the preceding Codex tool call. |