code_references
Find files that use or mention a code symbol, ordered by strongest evidence like calls, inheritance, or imports, with options for callers, subtypes, or all uses.
Instructions
Find the files that use a symbol, best evidence first: files the code index links to it (a call, a base type, an import) with the lines, then files whose text names it. kind="calls" for callers only, "inherits" for subtypes only, "all" (default) for every use and mention. Name the symbol as for code_find_symbol ("Ledger.Post"); qualify it further when the name is common.
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": {
"containerId": "<containerId>",
"symbol": "<symbol>"
},
"name": "code_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | "all" (default), "calls" or "inherits" | |
| limit | No | At most this many files (1-200). Default 20 | |
| symbol | Yes | The symbol, e.g. "Ledger.Post" | |
| containerId | Yes | Container or source ID or name |