CostAffective
Back to Tools Overview
find_symbol tool

Tool: find_symbol

Queries the relational index to find the exact declaration bounds of a symbol (class, struct, interface, function, or global variable).

Arguments Schema

ParameterTypeRequiredDescription
symbolstringRequiredThe exact symbol name to resolve.
repo_pathstringRequiredAbsolute path to the workspace root.
Tool Input JSONRequest
{
  "symbol": "TreeSitterRetriever",
  "repo_path": "/home/mryg/Research-Architectures/CLI"
}
Tool Response JSONResponse
{
  "file": "internal/retriever/treesitter.go",
  "kind": "struct",
  "lines": "12-45",
  "content": "type TreeSitterRetriever struct {\n\tDB *sql.DB\n}"
}

Developer Best Practices

  • Avoid regex expressions; this tool expects exact symbol tokens.
  • Always query repository_summary first if you are unsure of symbol naming conventions.