codex_wait
Waits for a background Codex task to finish, returning minimal status while it runs and full structured output when complete, with optional progress updates every 15 seconds.
Instructions
Wait up to wait_seconds (default 180) for a background Codex task to finish. Returns minimal status ({task_id, status, session_id, elapsed_ms}) while still running, and full structured output once finished. Emits progress notifications every 15s when the client supplies a progressToken.
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_id": "<task_id>"
},
"name": "codex_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task_id returned by codex_run or codex_review. | |
| wait_seconds | No | Maximum seconds to wait. Default: 180. |