Browse documentation

get_symbol_info

[symbols]

Gets detailed information about a symbol by its stable key (signature, docs, locations).

Try it locally in the Glider playground

Parameters

NameTypeRequiredDescription
symbolKeystringYesOpaque symbolKey from search_symbols, resolve_symbol, get_symbol_at_position, or any tool that returns symbolKey. Not a name.
includeLocationsbooleanNoInclude all definition locations. Default is true. Default: true
includeDocumentationbooleanNoInclude XML documentation. Default is true. Default: true
maxDocumentationCharsnumberNoMaximum documentation characters. Use 0 for unlimited. Default is 2000. Default: 2000
pathStylestringNoPath style: 'absolute' (default) or 'relative' (to solution root). Default: "absolute"
responseDetailstringNocompact returns results and actionable state. full adds diagnostic metadata under responseDiagnostics. Default: "compact"

Examples

Replace sample paths and symbol keys with values from your workspace.

Get symbol info from a symbol key

Arguments
{
  "symbolKey": "..."
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_symbol_info",
    "arguments": {
      "symbolKey": "..."
    }
  }
}
Illustrative response
{
  "success": true,
  "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"
    }
  ]
}

Response Notes

Returns the symbol signature and locations. With includeLocations=true, replacementSpans identifies supported member declarations for replace_member. Lines and UTF-16 columns are one-based, with exclusive ends. start/length are zero-based UTF-16 offsets. Read the indicated file window and exclude outer trivia from expectedText. Results use top-level fields with success. Compact is the default; full adds responseDiagnostics. Both modes retain errors, coverage, partial state, and recovery advice.