[analysis]
Analyzes type dependencies to show what types a given type uses and what types use it.
| Name | Type | Required | Description |
|---|---|---|---|
| typeName | string | Yes | Name of the type to analyze. |
| projectName | string | No | Optional project name to limit the search scope. |
| direction | string | No | Dependency direction: uses, used_by, or both. |
Analyze dependencies for a type
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_type_dependencies",
"arguments": {
"typeName": "SolutionManager"
}
}
}{
"success": true,
"data": {
"typeName": "SolutionManager",
"fullName": "Glider.Services.SolutionManager",
"filePath": "/path/to/SolutionManager.cs",
"usesCount": 4,
"usedByCount": 2,
"uses": [
{
"typeName": "Workspace",
"fullName": "Microsoft.CodeAnalysis.Workspace",
"namespace": "Microsoft.CodeAnalysis",
"usageKind": "Field",
"filePath": null,
"isExternal": true
}
],
"usedBy": [
{
"typeName": "SolutionTools",
"fullName": "Glider.Server.SolutionTools",
"namespace": "Glider.Server",
"usageKind": "Method",
"filePath": "/path/to/SolutionTools.cs",
"isExternal": false
}
]
},
"error": null
}Returns types used by the target and types that reference it
Go to Playground to test this tool interactively.