explain_code
Why the code is the way it is: the history behind a path or symbol, oldest first — each edit (who, when, what changed), completed intents with their rationales, reverted attempts and anchored notes. It includes uncommitted work and the reasons given. Read-only.
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": "explain_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File to explain; with no symbol, the whole file. | |
| symbol | No | Narrow the history to one symbol. | |
| repo_id | No | The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in. |