roslyn:get_method_source
Retrieve method source code by providing type and method name. Eliminates the need to read source files directly.
Instructions
Get the actual source code of a method by type and method name. Eliminates need for file Read.
USAGE: get_method_source(typeName="MyService", methodName="ProcessData") OUTPUT: Full method source including signature, body, location (file + line numbers), and line count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | The containing type name (e.g., 'MyService', 'MyController') | |
| methodName | Yes | The method name (e.g., 'ProcessData') | |
| overloadIndex | No | Which overload to get (0-based, default: 0) |