Find Implementations
find_implementationsList all types that implement a C# interface, including external interfaces, so you can find every implementer before changing an interface member.
Instructions
List the types that implement an interface, declared in the solution or external (IDisposable, IEquatable). The interface counterpart to get_type_hierarchy (class inheritance) and find_overrides (methods).
Use it before changing an interface member, to find every type that has to follow.
Returns items [{name, isAbstract, kind, isTestProject, namespace, declaration, via}], count, totalFound, truncated - at most 100 items, sorted by name. kind is class, struct, record or interface; isAbstract marks an abstract base ('FooBase : IFoo'); 'declaration' is a generic implementer's arity-qualified form ('PolicyWrap'); via:'back-edge' marks an item known only from the interface's own implementer list, via:'inherited' one that gets an external interface through a solution base class or interface.
A closed query ('IHandler') lists the types closing it with those arguments, via bases and generic interfaces too; typeArgumentFilter counts the arity-matching types (tests too) closing it otherwise (otherClosings) or only over their own type parameters (openClosings). An unreadable closing stays, marked closing:'unresolved'.
Test-project implementers are excluded by default; testImplementationsFiltered: N says how many (absent = none), so a short list is never silently short.
An empty answer carries a 'hint' when the name is not an interface (use get_type_hierarchy or find_overrides) or no indexed type carries it (a did-you-mean when one is close; a delegate counts as undeclared), and a 'generatedCodeNote' when a source generator that did not run may have added the interface. When a project's core references did not resolve, a leading 'note' marks the inventory as partial until restore or build, then refresh_session.
Read-only. interfaceName is the simple name, case-sensitive: a namespace-qualified name matches nothing. Two interfaces that share a simple name answer as one list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use. | |
| includeTests | No | Include test-project implementers (default false - production focus). | |
| interfaceName | Yes | The interface's simple name, e.g. 'ICodeAnalyzer'. An arity suffix ('IConsumer`1' / 'IConsumer<T>', or 'IConsumer`0' for the non-generic namesake) filters to that arity; a bare name keeps the merged view of every arity. A concrete type argument ('IConsumer<OrderPlaced>') keeps only the types that close it with that argument. |