jar_read_source
Inspect source code inside JAR archives without extraction. Reads Java/Kotlin source line-by-line from the JAR or adjacent sources jar, falling back to class outline when unavailable.
Instructions
Read attached Java/Kotlin source for a class, one line window at a time.
Looks inside the archive itself, then the matching -sources.jar next to it
(Maven layout) or beside it in the Gradle cache. If no source is available,
say so and fall back to jar_class_outline.
Args:
jar: Archive path, classes directory, or outer.jar!nested.jar.
target: FQCN (com.acme.Foo) or an entry path (com/acme/Foo.java).
start_line: 1-based first line to show.
line_count: How many lines to show; use a window rather than whole files.
sources_jar: Explicit sources archive, when auto-detection misses it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jar | Yes | ||
| target | Yes | ||
| line_count | No | ||
| start_line | No | ||
| sources_jar | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |