codex_execute
Execute a single bounded coding task via Codex CLI and get a compact JSON report with diff, status, exit code, and thread ID.
Instructions
Execute one bounded coding task through Codex CLI (synchronous, blocks until done) and return a compact JSON report with diff/status context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory/repository root. | |
| task | Yes | Bounded coding task with goal, constraints, files, acceptance criteria, and verification command. | |
| model | No | Optional Codex model override, e.g. gpt-5.1-codex. | |
| timeoutMs | No | Internal timeout; must be below the MCP client's own per-call timeout. | |
| resumeThreadId | No | Resume a specific Codex thread id instead of starting a new one. | |
| dangerouslyBypassSandbox | No | Use --dangerously-bypass-approvals-and-sandbox instead of --approve-for-me. Only for environments that are already externally sandboxed. |