diff_ast
Compare two Python files structurally to reveal added, removed, or modified functions, classes, methods, module variables, imports, and all. Performs a signature-level diff, not a text diff.
Instructions
Structural diff between two Python files: added, removed and modified
functions, classes, methods, module variables, imports and __all__.
Signature-level, not text-level.
Args: old_path: Path to the original file. new_path: Path to the updated file.
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": {
"old_path": "<old_path>",
"new_path": "<new_path>"
},
"name": "diff_ast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_path | Yes | ||
| old_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |