get_type_info

[analysis]

Gets detailed information about a type (members, inheritance, interfaces, docs, and location).

Why this tool exists

Agents need enough source and member detail to act, but whole files are often too much context.

How it helps the agent

These tools provide bounded, structured slices of types and methods so the model can inspect intent without flooding the prompt.

Parameters

NameTypeRequiredDescription
typeNamestringYesType name (simple or fully qualified).
projectNamestringNoOptional project name filter.
includeMembersbooleanNoInclude member list in response. Default is true.
maxMembersnumberNoMaximum number of members to return. Default is 100.
memberKindsstringNoFilter members by kind, comma-separated: 'Method', 'Property', 'Field', 'Event', or 'Constructor'.
pathStylestringNoPath style: 'absolute' (default) or 'relative' (to solution root).

Examples

Get type info

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_type_info",
    "arguments": {
      "typeName": "UserService"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "name": "UserService",
    "fullName": "Acme.App.Services.UserService",
    "kind": "Class",
    "accessibility": "Public",
    "baseType": "Object",
    "interfaces": [
      "IUserService"
    ],
    "filePath": "/path/to/UserService.cs",
    "lineNumber": 10,
    "members": [
      {
        "name": "GetUserAsync",
        "kind": "Method",
        "type": "Task",
        "accessibility": "Public",
        "signature": "Task LoadSolutionAsync(string solutionPath)"
      }
    ]
  },
  "error": null
}

Response Notes

Returns type details including members

↑/↓ NavigateEnter OpenSpace Expand