find_unused_symbols
Find dead code in .NET solutions by scanning public types and members for references, excluding tests and generated symbols to surface truly unused code.
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) |