search_types
Decompilation
Searches for types whose names match a given pattern. Faster than listing all types when you know what you are looking for. Supports substring matching, regex, namespace filtering, and entity type filtering. Results are grouped by namespace.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assembly_path | string | Yes | — | Path to the .dll or .exe file |
pattern | string | Yes | — | Search pattern to match against type names |
namespace_filter | string|null | No | null | Only return types in namespaces containing this string |
entity_types | string[] | No | all | Types to search: class, interface, struct, delegate, enum |
case_sensitive | bool | No | false | Case-sensitive pattern matching |
use_regex | bool | No | false | Treat pattern as a regular expression |
Example
Section titled “Example”{ "tool": "search_types", "arguments": { "assembly_path": "/path/to/MyApp.dll", "pattern": "Service", "namespace_filter": "MyApp.Core", "entity_types": ["class", "interface"] }}result = await client.call_tool("search_types", { "assembly_path": "/path/to/MyApp.dll", "pattern": "Service", "namespace_filter": "MyApp.Core", "entity_types": ["class", "interface"],})Response
Section titled “Response”Returns matching types grouped by namespace. Each entry shows the type name, fully qualified name, and kind. Supports pagination via max_results and offset.
Related tools
Section titled “Related tools”- list_types — list all types without filtering
- decompile_assembly — decompile the types you find
- search_methods — search for methods instead of types