jdx_body
Retrieve a JVM member's method body sliced verbatim with provenance, optionally adding signatures, line numbers, context lines, javadoc, or forcing a vineflower/javap reconstruction engine.
Instructions
Open the method: the source body of one member, sliced verbatim 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_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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). | |
| engine | No | Force a reconstruction engine: vineflower or javap (default: paired sources first). | |
| context | No | Extra lines around the body (default 0). | |
| withDoc | No | Append the member javadoc. | |
| maxLines | No | Cap the body 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. | |
| withSignature | No | Prepend the member signature line. |