Get Method Source
get_method_sourceRetrieve the source code of a specific method in a class, including class-side or instance methods, to inspect its implementation details.
Instructions
Get the source code of a specific method in a class.
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": {
"class_name": "<class_name>",
"method_name": "<method_name>"
},
"name": "get_method_source"
}
}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 | |||