find_unused_symbols
Scans a .NET solution to identify unused types and members, filtering out test methods and generated code, and returns a summary of dead code items.
Instructions
Find potentially unused types and members (dead code detection). Checks public symbols for references across the solution. Filters out test methods, MCP tools, source-generator output, MEF-composed services, and interop-laid-out fields. Returns an envelope with items, totalCount, truncated, limit (default 500), and a summary including byKind + filteredOut counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (default: 500). Items are sorted by project, then file. | |
| project | No | Optional project name filter | |
| includeInternal | No | Include internal symbols (default: false) |