CostAffective
Back to Tools Overview
find_references tool

Tool: find_references

Locates all files and line references accessing a specific symbol name statically across the repository.

Arguments Schema

ParameterTypeRequiredDescription
symbolstringRequiredThe target symbol token.
repo_pathstringRequiredAbsolute 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.