source
Retrieves exact definition code and line numbers for Java symbols, including JDK and library symbols from their archives, so you can inspect only needed lines instead of whole files.
Instructions
The exact source of a definition (method, field, class) with line numbers, so you do not have to read the whole file; also for JDK and library symbols (from their sources jars).
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": {
"symbol": "<symbol>"
},
"name": "source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Name or exact SCIP symbol (forms: see the server instructions) | |
| max_lines | No | Maximum source lines | |
| project_root | No | Checkout or worktree to query (any directory in it); default: where the server started |