mc_get_class
Get class hierarchy, method and field signatures, or full decompiled source for any Minecraft or Fabric API class.
Instructions
Get info about a Minecraft or Fabric API class.
Use the "view" parameter to control the response size:
"summary" (default): hierarchy + counts + one-line method/field signatures. Always fits in the response budget; pick this first.
"methods": hierarchy + every method signature (no bodies, no fields).
"fields": hierarchy + every field declaration (no methods).
"full": full decompiled source. Big classes (e.g. ClientPacketListener) may exceed the response budget — start with "summary" and only ask for "full" when you need the implementation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | How much to return. Default "summary". | |
| 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") |