roslyn:get_di_registrations
Scan .NET dependency injection registrations to identify service lifetimes, types, and locations. Use to audit wiring and find missing or mismatched registrations.
Instructions
Scan for dependency injection service registrations (AddScoped, AddTransient, AddSingleton, etc.).
USAGE: get_di_registrations() USAGE: get_di_registrations(projectName: "MyApi")
OUTPUT: List of DI registrations with lifetime, service type, implementation type, and location. Use for: understanding service wiring, finding missing registrations, auditing lifetimes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "roslyn:get_di_registrations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectName | No | Filter to specific project |