Skip to content

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.

ParameterTypeRequiredDefaultDescription
assembly_pathstringYesPath to the .dll or .exe file
patternstringYesSearch pattern to match against type names
namespace_filterstring|nullNonullOnly return types in namespaces containing this string
entity_typesstring[]NoallTypes to search: class, interface, struct, delegate, enum
case_sensitiveboolNofalseCase-sensitive pattern matching
use_regexboolNofalseTreat pattern as a regular expression
{
"tool": "search_types",
"arguments": {
"assembly_path": "/path/to/MyApp.dll",
"pattern": "Service",
"namespace_filter": "MyApp.Core",
"entity_types": ["class", "interface"]
}
}

Returns matching types grouped by namespace. Each entry shows the type name, fully qualified name, and kind. Supports pagination via max_results and offset.