find_symbol
Locate function, class, or method definitions by exact or partial name with the AST symbol graph, returning file, line, and caller/callee counts.
Instructions
Finds where a function/class/method is defined using the AST symbol graph.
Works without the vector index (no embedding model needed).
Args:
name: Symbol name — exact or partial (case-insensitive).
n_results: Max results (default 8).
Returns:
Definitions with file:line plus caller/callee counts.
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": "find_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| n_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |