references
Locate every use of a name in a codebase, grouped by file with line numbers and enclosing symbols. Pin a definition via path to see only matching uses, with totals and pagination.
Instructions
Every place a name is used, grouped by file with line numbers and enclosing symbol. When path (or a qualified name) pins one definition, only references resolving to it are listed. Reports the true total, how many are shown, and a next offset for continuation. kind: call | new | arg | ref | import.
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": {
"name": "<name>"
},
"name": "references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | Yes | ||
| path | No | ||
| limit | No | ||
| offset | No | ||
| exclude_tests | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |