review
Start a read-only code review of a repository or uncommitted changes with custom focus prompts. Returns a background job immediately for status checks or wait commands.
Instructions
Start a read-only code review against a repository. Supports uncommitted changes with a custom review prompt. Returns a background job immediately. Run waitCommand or waitCommandPosix (Bash or Zsh), or call job_status with jobId for output.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Review changes against a specific base branch (e.g., "main"). | |
| model | No | Model or alias for code review (defaults to sol -> gpt-6.2-sol). Aliases auto-resolve from ~/.codex/models_cache.json: sol (gpt-6.2-sol), astra (gpt-6.2-astra), terra (gpt-6.1-terra), or pass any exact slug. | |
| speed | No | Alias for serviceTier. | |
| title | No | Title for a commit review or for uncommitted changes with a custom prompt. | |
| commit | No | Review the changes introduced by a specific commit SHA. | |
| prompt | No | Custom review instructions or focus areas (works both standalone and together with uncommitted=true). | |
| serviceTier | No | Speed tier: fast (priority), ultrafast, or default/standard to disable the override. Case-insensitive. Falls back to CODEX_DEFAULT_SERVICE_TIER. Check listModels for supported tiers. | |
| uncommitted | No | Review staged, unstaged, and untracked changes in the working tree. | |
| service_tier | No | Alias for serviceTier. | |
| reasoningEffort | No | Reasoning effort depth: none, minimal, low, medium, high, xhigh, max, ultra (also accepts snake_case reasoning_effort). | |
| reasoning_effort | No | Alias for reasoningEffort. | |
| workingDirectory | No | Working directory to run the review in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| jobId | Yes | ||
| model | Yes | ||
| status | Yes | ||
| logFile | Yes | ||
| runnerPid | Yes | ||
| sessionId | Yes | ||
| stderrFile | Yes | ||
| stdoutFile | Yes | ||
| serviceTier | Yes | ||
| waitCommand | Yes | ||
| waitCommandPosix | Yes |