find_symbol_references
Locate call-sites, imports, and usages of a specific symbol across workspace code files. Returns file paths, line numbers, usage classification, and code snippets.
Instructions
Find call-sites, imports, and usages of a specific symbol across workspace code files. Returns occurrences with file paths, line numbers, usage classification ('import' vs 'reference'), and snippets.
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_name": "<symbol_name>"
},
"name": "find_symbol_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sub_dir | No | ||
| path_glob | No | ||
| workspace | No | default | |
| max_matches | No | ||
| symbol_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||