codex_review
Run a non-interactive Codex code review against uncommitted changes, a base branch, a commit, or custom instructions, and receive JSON results.
Instructions
Run a non-interactive Codex code review (codex exec review --json). Choose exactly one target: uncommitted=true, base branch, commit SHA (+optional title), or custom prompt.
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 to the Git repository working directory. | |
| base | No | Review changes against base branch (--base). | |
| model | No | ||
| title | No | Optional commit title displayed in review summary (only valid with commit). | |
| commit | No | Review changes in a specific commit (--commit). | |
| prompt | No | Custom review instructions via stdin (mutually exclusive with uncommitted/base/commit). | |
| profile | No | Optional Codex config profile (-p). | |
| sandbox | No | ||
| uncommitted | No | Review staged, unstaged, and untracked changes (--uncommitted). | |
| wait_seconds | No | ||
| output_schema | No | ||
| max_duration_sec | No | ||
| reasoning_effort | No | Optional Codex reasoning effort override (-c model_reasoning_effort=..., e.g. low, medium, high, xhigh). | |
| skip_git_repo_check | No |