Quote a local review
review_localSend the local diff for review and get its quote. Nothing runs yet: the answer says 'This review will cost you up to $X (Strong)' with the other levels' prices. Always show the user the price and ask them to confirm before you call confirm_review; never confirm on your own. Send each changed file with its patch and full text (none for a removed file). Also send context_files: the files that call, or are called by, the changed code (its callers and the modules it imports), because the review sees only what you send and cannot check effects in files it was not given. (at most 250000 bytes in all). Never send secrets. In a follow-up, only files changed since the last review are counted.
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": "<repo>",
"session_id": "<session_id>"
},
"name": "review_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | The session's repository, "owner/name". | |
| files | No | The changed files, unless upload_id is given. | |
| omitted | No | Files the review could not be sent because of the upload caps. The quote names them, so nothing left out is taken for absent. | |
| upload_id | No | From an upload sent with prepare_upload's token. Use this for a review too large to pass inline in files. | |
| session_id | Yes | The session_id start_session returned. | |
| context_files | No | Unchanged files that call, or are called by, the changes. | |
| callers_not_followed | No | Changed files that were sent, whose callers the review could not follow because their name is too common. The quote names them. |