getSymbolHistory
Trace any code symbol to its definition, find who last modified it, and explore the file's commit history to discover the reason it exists.
Instructions
Symbol evolution: LSP definition + git blame on definition site + file commit history. Answers 'why does this exist?' and 'who changed it last?'
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "getSymbolHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number of symbol (1-based) | |
| column | Yes | Column number of symbol (1-based) | |
| filePath | Yes | Workspace or absolute file path | |
| blameLines | No | Lines of blame context around definition site (default: 5) | |
| maxCommits | No | Max commits to return from file history (default: 10) |