Start or Continue Codex Turn
codex_turnStart or resume a persistent Codex thread to initiate a turn, returning immediately upon acceptance. Observe events separately for completion.
Instructions
Start a persistent Codex thread and turn, or resume an existing thread and start a turn. Prefer continuing the same native thread when its context remains useful, but a fresh thread is allowed; thread_id is not a permanent task identity. Returns as soon as turn/start is accepted; observe separately for events and completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute Windows drive-letter cwd. Required for a new thread; optional override for resume. | |
| text | Yes | User text passed directly to Codex as one text input item. | |
| model | No | Optional model identifier passed through to app-server. | |
| effort | No | Optional reasoning effort passed through to turn/start. | |
| sandbox | No | Codex app-server sandbox mode override. | |
| thread_id | No | Existing persistent Codex thread to resume. Omit to create a new thread. | |
| approval_policy | No | Codex app-server approval policy override. |