Diff
diff
MCP tool for structural branch diff.
DiffTool
Bases: AXMTool
Compare two git refs at symbol level.
Registered as ast_diff via axm.tools entry point.
Uses git worktrees to avoid disturbing the working tree.
Source code in packages/axm-ast/src/axm_ast/tools/diff.py
name
property
Return tool name for registry lookup.
execute(*, path='.', base='', head='', **kwargs)
Compare two branches at symbol level.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to package directory. |
'.'
|
base
|
str
|
Base git ref (branch, tag, commit). |
''
|
head
|
str
|
Head git ref (branch, tag, commit). |
''
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with structural diff data. |