Skip to content

search_methods

Search for methods in an assembly by name pattern. This tool reads the MethodDef metadata table directly using dnfile — no ilspycmd required. Results are grouped by declaring type and include visibility modifiers such as public, static, virtual, and abstract.

ParameterTypeRequiredDefaultDescription
assembly_pathstringYesFull path to the .NET assembly (.dll or .exe)
patternstringYesSearch pattern to match against method names
type_filterstring | nullNonullOnly search methods in types containing this string
namespace_filterstring | nullNonullOnly search in namespaces containing this string
public_onlyboolNofalseOnly return public methods
case_sensitiveboolNofalseWhether pattern matching is case-sensitive
use_regexboolNofalseTreat pattern as a regular expression
{
"tool": "search_methods",
"arguments": {
"assembly_path": "/path/to/MyApp.dll",
"pattern": "Handle",
"namespace_filter": "MyApp.Services",
"public_only": true
}
}

Methods grouped by their declaring type (fully qualified), each showing visibility modifiers. Results support pagination via max_results and offset parameters.