sharphy_decompile_method
Decompile compiled CIL bytecode into idiomatic C# source to inspect method logic, lambda expressions, or async state machines in a .dll/.exe assembly.
Instructions
Decompiles compiled CIL bytecode into idiomatic C# source code using the embedded ILSpy engine. Use this tool when inspecting method logic, lambda expressions, or async state machines of a compiled assembly. Do NOT use for metadata enumeration (use 'sharphy_inspect_metadata') or binary diffing (use 'sharphy_diff_assemblies'). Read-only inspection.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"assemblyPath": "<assemblyPath>",
"typeName": "<typeName>",
"methodName": "<methodName>"
},
"name": "sharphy_decompile_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Fully qualified type or class name (including namespace) | |
| methodName | Yes | Name of the target method to decompile | |
| assemblyPath | Yes | Absolute path to the compiled assembly (.dll/.exe) |