review_file
Reviews a full file by synthesizing it as an all-added unified diff and running the standard review pipeline to check coding conventions.
Instructions
Whole-file review — a simpler fallback that reuses the same review pipeline as review_diff, with the entire file synthesized as an all-added unified diff.
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": {
"repo_path": "<repo_path>",
"file_path": "<file_path>"
},
"name": "review_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head_ref | No | HEAD | |
| file_path | Yes | ||
| repo_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| findings | Yes | ||
| trace_id | Yes | ||
| hunks_reviewed | Yes | ||
| duration_seconds | Yes | ||
| findings_suppressed_by_critic | Yes |