search_context
Retrieve code context by combining semantic search with graph expansion, returning similar chunks and related symbols.
Instructions
Two-stage retrieval in one call: semantic search + graph expansion.
Runs vector search for query (top-k), takes the symbol names from those
hits, expands the graph one hop from them, and returns a combined result:
similar_chunks (the vector hits) plus related_symbols (graph neighbors).
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": {
"query": "<query>"
},
"name": "search_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | ||
| query | Yes | ||
| top_k | No |