1Find all references to/usage of a symbol by name using the Language Server Protocol (LSP).
2
3<usage>
4- Provide symbol name (e.g., "MyFunction", "myVariable", "MyType").
5- Optional path to narrow search to a directory or file (defaults to current directory).
6- Tool automatically locates the symbol and returns all references.
7</usage>
8
9<features>
10- Semantic-aware reference search (more accurate than grep/glob).
11- Returns references grouped by file with line and column numbers.
12- Supports multiple programming languages via LSP.
13- Finds only real references (not comments or unrelated strings).
14</features>
15
16<limitations>
17- May not find references in files not opened or indexed by the LSP server.
18- Results depend on the capabilities of the active LSP providers.
19</limitations>
20
21<tips>
22- Use this first when searching for where a symbol is used.
23- Do not use grep/glob for symbol searches.
24- Narrow scope with the path parameter for faster, more relevant results.
25- Use qualified names (e.g., pkg.Func, Class.method) for higher precision.
26</tips>