Analyze a patch diff
patch_diff_analyzeComputes a line-based LCS unified diff between two workspace files, reporting added, removed, and context statistics plus semantic classification as security fix, refactor, or feature.
Instructions
Compute a real line-based LCS unified diff between two workspace files, with added/removed/context statistics and a semantic classification (security fix / refactor / feature). Returns diff hunks.
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": {
"beforePath": "<beforePath>",
"afterPath": "<afterPath>"
},
"name": "patch_diff_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxLines | No | Per-file line cap for the diff (default 2000). | |
| afterPath | Yes | Patched file (workspace-relative). | |
| beforePath | Yes | Original file (workspace-relative). |