Find code by intent (BM25, no embeddings)
search_intentSearch code by intent: describe what it does, get ranked symbols via BM25 on names and filenames. Example: 'validate user email' yields validateEmail.
Instructions
Know WHAT the code does but not its name: a words query ranked over every indexed symbol by BM25 on tokenized names (camelCase/snake_case), kinds and filenames — 'validate user email' surfaces validateEmail / emailValidator. Matches WORDING, not meaning. Exact/partial name → search_symbols; literal string → search_code.
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_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Top matches to return (default 10). | |
| query | Yes | What the code does, in words — 'parse the config file', 'retry a failed request'. |