references
Find all exact uses of a Java symbol grouped by file, with line and enclosing method, and scope results by package or source path.
Instructions
Every use of a symbol (like findReferences), grouped by file, with the line of code and [the enclosing method]. Exact: only this symbol, not same-named members of other types. Overrides are separate symbols: see family / callers. Large results open with a summary.
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": "references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items | |
| scope | No | Only results in this package (prefix or glob) or, with '/', source path glob | |
| offset | No | Items to skip | |
| symbol | Yes | Name or exact SCIP symbol (forms: see the server instructions) | |
| by_name | No | Append what the index cannot see: the name (or bean property name) inside string literals of .java files and in other files matching by_name_globs, and javadoc {@link}/@see mentions | |
| project_root | No | Checkout or worktree to query (any directory in it); default: where the server started | |
| by_name_globs | No | File globs for by_name, e.g. ['*.java', '*.xml']. Default *.java | |
| exclude_imports | No | Leave out import lines (default: yes for types, no otherwise) | |
| include_definitions | No | Also print where it is defined |