jar_read_entry
Read a text entry from a Java archive directly, such as a MANIFEST, XML, or config file, without extracting the JAR. Supports line ranges and describes binary entries instead of dumping them.
Instructions
Read one text entry from an archive: MANIFEST, service files, XML, config.
Prefer this over unzip -p. Binary entries are described, not dumped.
Args:
jar: Archive path, classes directory, or outer.jar!nested.jar.
entry: Exact entry path, e.g. META-INF/spring.factories.
start_line: 1-based first line to show.
line_count: How many lines to show.
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": {
"jar": "<jar>",
"entry": "<entry>"
},
"name": "jar_read_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jar | Yes | ||
| entry | Yes | ||
| line_count | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |