roslyn:get_method_source
Retrieve the complete source code of any method by specifying the type and method name, including signature, body, location, and line count.
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) |