mc_get_method
Get the source code of any method in a Minecraft class, including surrounding context, to analyze implementation details.
Instructions
Get the source code for a specific method in a class, with surrounding context. Useful for understanding method implementation details.
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": {
"className": "<className>",
"methodName": "<methodName>"
},
"name": "mc_get_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Optional: Minecraft version to use (e.g., "1.21.1"). If not provided, uses the active version set by mc_version. | |
| className | Yes | Fully qualified class name (e.g., "net.minecraft.client.MinecraftClient") | |
| methodName | Yes | Method name (e.g., "tick", "render", "onUse") |