generate_diagrammer
Decompilation
Creates an interactive HTML visualization of type relationships within a .NET assembly. The diagram shows inheritance hierarchies, interface implementations, and namespace organization. Open the generated file in any browser to explore the type graph.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assembly_path | string | Yes | — | Path to the .dll or .exe file |
output_dir | string|null | No | null | Where to save the HTML file (defaults to a diagrammer folder next to the assembly) |
include_pattern | string|null | No | null | Regex to include only matching types (e.g., "MyApp\\.Services\\..+") |
exclude_pattern | string|null | No | null | Regex to exclude matching types (e.g., ".*Generated.*") |
Example
Section titled “Example”{ "tool": "generate_diagrammer", "arguments": { "assembly_path": "/path/to/MyApp.dll", "include_pattern": "MyApp\\.Core\\..+", "exclude_pattern": ".*Tests.*" }}result = await client.call_tool("generate_diagrammer", { "assembly_path": "/path/to/MyApp.dll", "include_pattern": r"MyApp\.Core\..+", "exclude_pattern": r".*Tests.*",})Response
Section titled “Response”Returns the path to the generated HTML file along with the output directory. Open the HTML file in a web browser to interactively explore type inheritance, interface implementation, and namespace structure.
Related tools
Section titled “Related tools”- list_types — discover namespaces before choosing diagram filters
- search_types — find specific types to include or exclude
- decompile_assembly — deep dive into types visible in the diagram