cortex_suggest
Returns search suggestions from partial queries and current context, using prefetched cache or local search to help coding agents complete queries quickly.
Instructions
Get smart search suggestions based on partial query and current context. Returns instant results from prefetched cache or fast search.
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": "cortex_suggest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The partial query to get suggestions for | |
| top_k | No | Number of suggestions to return | |
| current_file | No | Current file path for context-aware suggestions |