codex_review
Run Codex CLI code reviews on a local repository, defaulting to read-only and checking uncommitted changes, base branches, commits, or custom prompts.
Instructions
Run a code review with Codex CLI (codex exec review), read-only by default (accepts sandbox override).
Defaults: sandbox="read-only", model=(inherited from ~/.codex/config.toml), reasoning_effort=(inherited from ~/.codex/config.toml), wait_seconds=300.
When model is specified (or CODEX_DEFAULT_MODEL is set), it also sets Codex's review_model override.
If no review target (uncommitted/base/commit/prompt) is provided, defaults to uncommitted changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cwd": "<cwd>"
},
"name": "codex_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path of the repository directory to review. | |
| base | No | Review changes against a base branch (--base). | |
| model | No | Optional model / review_model override. Omit to inherit ~/.codex/config.toml. | |
| title | No | Optional title displayed in the review summary (--title). | |
| commit | No | Review changes introduced by a specific commit SHA (--commit). | |
| prompt | No | Optional custom review instructions. | |
| sandbox | No | Defaults to "read-only" (accepts writable overrides if requested). | |
| worktree | No | Not supported for review mode by Codex CLI. | |
| uncommitted | No | Review staged, unstaged, and untracked changes (--uncommitted). | |
| wait_seconds | No | Seconds to wait synchronously. Default: 300. | |
| reasoning_effort | No | Optional reasoning effort override. Omit to inherit ~/.codex/config.toml. | |
| skip_git_repo_check | No |