get_method_code_by_id
Retrieve method source code using its unique identifier for code review and security analysis in the Joern MCP Server.
Instructions
Get the code of a method by its class full name and method name
@param class_full_name: The fully qualified name of the class
@param method_name: The name of the method
@return: List of full name, name, signature and id of methods in the 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": {
"method_id": "<method_id>"
},
"name": "get_method_code_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method_id | Yes |