[symbols]
Resolves the symbol at a file position and returns a stable symbol key.
C# names are overloaded, scoped, generic, nested, and sometimes duplicated across projects.
Symbol discovery converts fuzzy names or cursor positions into stable identities the model can reuse for later references, callers, and refactors.
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Absolute file path. |
| line | number | Yes | 1-based line number. |
| column | number | Yes | 1-based column number. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
Get symbol key under cursor
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_symbol_at_position",
"arguments": {
"filePath": "/Users/dev/MyProject/Program.cs",
"line": 10,
"column": 15
}
}
}{
"success": true,
"data": {
"symbolKey": "...",
"displayName": "MyApp.Services.UserService",
"kind": "Type",
"containingType": null,
"filePath": "/path/to/UserService.cs",
"lineNumber": 12
},
"error": null
}Returns a symbol key and basic symbol details