codex
Execute coding tasks and receive AI-powered code analysis, generation, or review through Codex CLI. Configure model, reasoning effort, and sandbox policies for controlled execution.
Instructions
Execute Codex CLI in non-interactive mode for AI assistance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The coding task, question, or analysis request | |
| sessionId | No | Optional session ID for conversational context. Note: when resuming a session, sandbox/fullAuto/workingDirectory parameters are not applied (CLI limitation) | |
| resetSession | No | Reset the session history before processing this request | |
| model | No | Specify which model to use (defaults to gpt-5.3-codex). Options: gpt-5.3-codex, gpt-5.2-codex, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5-codex, gpt-4o, gpt-4, o3, o4-mini | |
| reasoningEffort | No | Control reasoning depth (none < minimal < low < medium < high < xhigh) | |
| sandbox | No | Sandbox policy for shell command execution. read-only: no writes allowed, workspace-write: writes only in workspace, danger-full-access: full system access (dangerous) | |
| fullAuto | No | Enable full-auto mode: sandboxed automatic execution without approval prompts (equivalent to -a on-request --sandbox workspace-write) | |
| workingDirectory | No | Working directory for the agent to use as its root (passed via -C flag) | |
| callbackUri | No | Static MCP callback URI to pass to Codex via environment (if provided) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No |