find_references tool
Tool: find_references
Locates all files and line references accessing a specific symbol name statically across the repository.
Arguments Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Required | The target symbol token. |
| repo_path | string | Required | Absolute path to the workspace root. |
Tool Input JSONRequest
{
"symbol": "QueryReferences",
"repo_path": "/home/mryg/Research-Architectures/CLI"
}Tool Response JSONResponse
[
{
"file": "internal/store/sqlite.go",
"line": 112,
"content": "return s.QueryReferences(sym)"
}
]Developer Best Practices
- Perfect for assessing the impact of refactoring functions.
- Helps agents verify how mock interfaces are set up in test files.