decompile_class
Decompile Maven dependency classes into full Java source with method bodies. Extract specific methods or paginate for focused reading.
Instructions
Decompile a Java class from Maven dependencies into full Java source code using Vineflower. Returns the complete .java source file (method bodies included). Optionally extract a single method by name, or paginate with offset/limit. Use this when you need to read the actual implementation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | Fully qualified name of the Java class to decompile, e.g., io.micrometer.observation.ObservationRegistry or com.example.QueryBizOrderDO | |
| projectPath | Yes | Maven project root directory path | |
| useCache | No | Whether to use cache, default true | |
| decompilerPath | No | JAR package path of Vineflower decompiler, optional | |
| methodName | No | Optional method name to extract instead of the full class. When provided, only the method body is returned. | |
| paramTypes | No | Optional: filter method overloads by parameter types (e.g. ["String", "int"]). Use when multiple methods with the same name exist. | |
| offset | No | Start line number (1-based, default: 1) | |
| limit | No | Max lines to return (0 = all lines) | |
| format | No | Output format. Default is text (human-readable). Use json for structured machine-readable data. Use toon for Token-Oriented Object Notation — a compact, LLM-friendly format that reduces tokens by ~40% compared to JSON while preserving structure (https://github.com/toon-format/toon). | text |