axiom_graph_diff

axiom_graph.mcp.server.axiom_graph_diff(project_root, node_id='', baseline_sha=None, node_ids=None, summary_only=False)

Show what changed in a node since a baseline commit.

When summary_only is False (default), returns JSON with keys: node_id, baseline_sha, baseline_date, old_content, new_content, summary.

When summary_only is True, omits old_content and new_content, adds lines_added and lines_removed integers. Use for triage before deep-diving into individual nodes.

Parameters:
project_root str

Absolute path to the indexed project.

node_id str

The node to diff.

baseline_sha str | None

Optional git SHA to diff against.

node_ids list[str] | None

Optional list of node IDs for batch operation. When provided, node_id is ignored.

summary_only bool

Return only metadata and line-count stats.

Return type:

str