ctx_diff
Return a semantic symbol diff between two git refs as JSON, listing added, modified, or removed symbols per file. Supply base to see only current branch changes via merge-base with HEAD.
Instructions
Return a semantic symbol diff between two git refs as JSON: the symbols added, modified or removed per file. Compared to ctx_changed, this is a structural (symbol-aware) diff rather than a file list. Provide base and head explicitly, or supply only base (or neither) — when base alone is given it resolves to its merge-base with HEAD so the diff shows only the current branch's changes; head defaults to HEAD. Only works in git repositories.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ctx_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base git ref. Optional: if only base (or neither) is given, base resolves to its merge-base with HEAD, showing only the current branch's additions/modifications/removals. Defaults to HEAD. | |
| head | No | Head git ref to compare against base. Defaults to HEAD. |