Request fields
| Field | Type | Description |
|---|---|---|
diff Required | string | Unified Git diff text with file headers and at least one hunk. |
targetLanguage Required | enum | Primary language identifier for the submitted change. |
contextSnippets Optional | array | Repository-relative source excerpts with line ranges and optional symbol or language labels. |
clientReference Optional | string | Opaque caller value returned unchanged for correlation. |
options Optional | object | Controls for effort, priority filtering, finding count, and partial results. |
Review options
| Field | Type | Description |
|---|---|---|
minPriority Optional | P0 | P1 | P2 | Lowest returned priority. Defaults to P2. |
maxFindings Optional | 1–100 | Maximum findings returned. Defaults to 25 and cannot exceed 100. |
enableComplexityRouting Optional | boolean | Allows additional analysis effort for complex diffs. Defaults to true. |
allowPartialResults Optional | boolean | Returns completed chunk results if a later chunk fails. Defaults to false. |
Languages and payload limits
Supported identifiers: typescript, javascript, python, go, rust, java, csharp, cpp, c, ruby, php, swift, kotlin, scala, shell, and sql.
Current release limits
The diff may contain up to 256,000 UTF-8 bytes. The serialized target language and context snippets may contain up to 64,000 UTF-8 bytes.