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.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assembly_path | string | Yes | — | Full path to the .NET assembly (.dll or .exe) |
pattern | string | Yes | — | Search pattern to match against method names |
type_filter | string | null | No | null | Only search methods in types containing this string |
namespace_filter | string | null | No | null | Only search in namespaces containing this string |
public_only | bool | No | false | Only return public methods |
case_sensitive | bool | No | false | Whether pattern matching is case-sensitive |
use_regex | bool | No | false | Treat pattern as a regular expression |
Example
Section titled “Example”{ "tool": "search_methods", "arguments": { "assembly_path": "/path/to/MyApp.dll", "pattern": "Handle", "namespace_filter": "MyApp.Services", "public_only": true }}result = await client.call_tool("search_methods", { "assembly_path": "/path/to/MyApp.dll", "pattern": "Handle", "namespace_filter": "MyApp.Services", "public_only": True,})Response
Section titled “Response”Methods grouped by their declaring type (fully qualified), each showing visibility modifiers. Results support pagination via max_results and offset parameters.
Related Tools
Section titled “Related Tools”search_fields— find fields and constantssearch_properties— find propertiesdecompile_method— extract a specific method body