Start Codex task
codex_startStart a Codex app-server thread in an allowed local repository, immediately begin a turn with your prompt, and receive threadId, turnId, and an event cursor for monitoring.
Instructions
Start a new Codex app-server thread and immediately begin a turn in an allowed local repository. Return threadId, turnId, and an event cursor for codex_wait or codex_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Existing repository directory inside CODEX_ALLOWED_ROOTS. | |
| model | No | Optional Codex model id. Omit to use the configured default. | |
| effort | No | Optional reasoning effort accepted by the selected model. | |
| prompt | Yes | Complete implementation or investigation request for Codex. | |
| sandboxMode | No | read-only prevents edits; workspace-write permits writes only in the repository. Legacy camelCase aliases remain accepted. | workspace-write |
| networkAccess | No | Requires CODEX_ALLOW_NETWORK=1 on the MCP server. | |
| approvalPolicy | No | Controls when Codex asks before command execution or file changes. | on-request |