get_symbol_info

[search]

Gets detailed information for a symbol by stable symbol key (from search_symbols or get_symbol_at_position).

Try this tool in Playground.

Parameters

NameTypeRequiredDescription
symbolKeystringYesStable symbol key.
includeLocationsbooleanNoInclude all definition locations. Default is true.
includeDocumentationbooleanNoInclude XML documentation. Default is true.
maxDocumentationCharsnumberNoMaximum documentation characters. Use 0 for unlimited. Default is 2000.
pathStylestringNoPath style: 'absolute' (default) or 'relative' (to solution root).
timeout_msnumberNoTimeout in milliseconds. Use 0 to disable. Default is 30000.

Examples

Get symbol info from a symbol key

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_symbol_info",
    "arguments": {
      "symbolKey": "..."
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "UserService",
    "fullName": "MyApp.Services.UserService",
    "kind": "Type",
    "namespace": "MyApp.Services",
    "filePath": "/path/to/UserService.cs",
    "lineNumber": 12,
    "projectName": "MyProject",
    "accessibility": "Public",
    "signature": "public class UserService",
    "documentation": "...",
    "locations": [
      {
        "filePath": "/path/to/UserService.cs",
        "lineNumber": 12,
        "column": 1,
        "lineText": "public class UserService",
        "projectName": "MyProject"
      }
    ]
  },
  "error": null
}

Response Notes

Returns rich symbol information including signature and locations