scan_git_diff
Scan only files changed in a git diff or staged changes to find security issues and policy violations.
Instructions
Scan only files changed in a git range (PR/diff) or staged changes.
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": "scan_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | HEAD~1 | |
| head | No | HEAD | |
| path | Yes | ||
| staged | No | ||
| use_ast | No |