Answer Codex
codex_respondAnswer Codex approval or question requests so blocked work can continue. Provide a decision or question answers, and ask the user first for risky or architectural choices.
Instructions
Answer a request Codex is blocked on (listed in pending_requests). Approvals take decision: accept | acceptForSession | decline | cancel. Questions take answers: { : "answer" }. Ask the user first for risky/destructive actions or architectural choices.
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": {
"request_id": "<request_id>"
},
"name": "codex_respond"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answers | No | ||
| decision | No | ||
| request_id | Yes | ||
| 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. |