query_symbols
Search for code symbols by name using fuzzy matching to analyze function, class, and variable relationships within codebases.
Instructions
Search for symbols by name or qualified name using fuzzy trigram matching. Replaces 10+ grep calls. Returns symbol kind, file path, fan-in/out, semantic role.
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": {
"snapshot_id": "<snapshot_id>",
"q": "<q>"
},
"name": "query_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes | Snapshot ID to query against | |
| q | Yes | Fuzzy search query (symbol name or qualified name) | |
| kind | No | Filter by symbol kind | |
| role | No | Filter by semantic role slug (e.g. "service", "repository") | |
| limit | No | Max results to return (default 50) |