[search]
Resolves the symbol at a file position and returns a stable symbol key.
Try this tool in Playground.
| 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). |
| timeout_ms | number | No | Timeout in milliseconds. Use 0 to disable. Default is 30000. |
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