get_method_source
Get the source code of any method in a Pharo Smalltalk class by providing the class name, method name, and method type (class-side or instance).
Instructions
Get the source code of a specific method in a class.
Args: class_name: The name of the class containing the method method_name: The name of the method to retrieve source for is_class_method: True for class-side methods, False for instance methods (default: False)
Returns: dict: API response with success/error and result - Success: {"success": True, "result": str} - result contains the method source code - Error: {"success": False, "error": str} - error contains error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_name | Yes | The name of the class containing the method | |
| method_name | Yes | The name of the method to retrieve source for | |
| is_class_method | No | Set to True for class-side methods, False for instance methods (default: False) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||