Apply a Codex diff
codex_applyApply a Codex task's latest diff to the local working tree with git apply, updating files on disk.
Instructions
Apply the latest diff produced by a Codex task to the local working tree, as a git apply. Modifies files on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository to apply into. Must sit inside the server allowlist. | |
| task_id | Yes | Codex task id whose latest diff should be applied with git apply. | |
| timeout_seconds | No | Inline wait before backgrounding. 0 returns immediately. |