mc_search
Search decompiled Minecraft or Fabric API source code for classes, methods, or fields by name pattern. Filter results by type and adjust the result limit as needed.
Instructions
Search decompiled Minecraft or Fabric API source code for classes, methods, or fields by name pattern.
Each hit returns enough context to make follow-up mc_get_class / mc_get_method calls unnecessary in trivial cases:
class hits: kind (class/interface/record/enum), extends, implements, field/method counts
method hits: full signature including modifiers (public/static/etc.) plus line number
field hits: full declaration including modifiers and type
Pass type="class"/"method"/"field" to filter; defaults to all three.
Results are capped (default 50, max 1000). Pass limit to widen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Optional: filter by type (class, method, or field) | |
| limit | No | Optional: max results to return (default 50, ceiling 1000). Non-positive or non-finite values fall back to the default. | |
| query | Yes | The search query - class, method, or field name (or partial name) | |
| version | No | Optional: Minecraft version to use (e.g., "1.21.1"). If not provided, uses the active version set by mc_version. |