Review Diff
review_diffReview added lines in uncommitted changes or branch diffs to identify security risks like new secrets, XSS sinks, and disabled TLS.
Instructions
Diff-aware code review of uncommitted changes or a branch comparison. Reviews only ADDED lines — the way a human reviewer reads a PR. Flags new secrets, empty catches, @ts-ignore, XSS sinks, disabled TLS, await-in-loop.
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": {
"path": "<path>"
},
"name": "review_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Git ref to diff against: HEAD, main, origin/main, a commit SHA | HEAD |
| path | Yes | Absolute path to the repository root |