capture_diff
Analyze code diffs to detect rule violations and capture modifications for rule generation.
Instructions
Capture and analyze a code diff for rule violations
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": {
"filePath": "<filePath>",
"originalContent": "<originalContent>",
"modifiedContent": "<modifiedContent>",
"language": "<language>"
},
"name": "capture_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| language | Yes | ||
| projectId | No | ||
| modifiedContent | Yes | ||
| originalContent | Yes |