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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Required | The exact symbol name to resolve. |
| repo_path | string | Required | Absolute 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.