mc_list_classes
List all classes under a specified package path. Returns class names and source locations to explore package hierarchies.
Instructions
List all classes under a specific package path. Returns class names and their source locations. Use this to discover classes in a package hierarchy.
Results are capped (default 200, max 5000). Pass limit to widen.
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": {
"packagePath": "<packagePath>"
},
"name": "mc_list_classes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional: max results to return (default 200, ceiling 5000). Non-positive or non-finite values fall back to the default. | |
| version | No | Optional: Minecraft version to use (e.g., "1.21.1"). If not provided, uses the active version set by mc_version. | |
| packagePath | Yes | Package path to list classes from (e.g., "net.minecraft.client", "net.minecraft.world.entity"). Matches exact package and all subpackages. |