jdx_source
Retrieves full source or a line slice for a JVM type or symbol with provenance, enabling inspection of method bodies and references from jars, Maven coordinates, or the JDK.
Instructions
Open the file: whole source for a type, or a slice of it, with provenance.
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": {
"query": "<query>"
},
"name": "jdx_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Line window A:B (1-based, inclusive). | |
| query | Yes | The symbol reference, type, pattern or glob the command asks about. Quote refs containing # or (). Empty only where the command allows it (ls, tree). | |
| around | No | Center the slice on this member ref. | |
| engine | No | Force a reconstruction engine: vineflower or javap (default: paired sources first). | |
| context | No | Extra lines around the slice (default 0). | |
| maxLines | No | Cap the slice (default 200). | |
| workspace | No | Named workspace to answer from (default: the workspace the server was started with). Stored workspaces only. | |
| lineNumbers | No | Prefix every line with its 1-based number. |