Respond to Codex Request
codex_respondResolve pending Codex approval requests by specifying the original request ID, thread, and method. Accept or decline command/file approvals, or provide answers for user input requests.
Instructions
Answer one currently pending app-server request by its original raw JSON-RPC id and exact thread/method scope. Supports only command/file approval methods with concrete response contracts and item/tool/requestUserInput; unsupported methods remain pending and observable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Exact app-server request method. | |
| answers | No | request_user_input question-id to answer-array mapping. | |
| turn_id | No | Exact turn scope when the pending request has one. | |
| decision | No | Command or file approval decision. | |
| response | No | Exact result object for the known item/tool/requestUserInput method. | |
| thread_id | Yes | Exact pending-request thread scope. | |
| request_id | Yes | Original app-server JSON-RPC request id, preserving string or integer type. | |
| execpolicy_amendment | No | Command approval exec-policy amendment; encoded in app-server's native decision shape. |