semantic_search
Search code by concept rather than exact text to find authentication logic or error handling without knowing specific strings. Uses TF-IDF with synonym expansion for natural language queries.
Instructions
Search code by concept, not just text. Finds "authentication logic" or "error handling code" without needing exact strings. Uses TF-IDF with synonym expansion.
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": "semantic_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language query, e.g. "authentication flow" or "database connection handling" | |
| file_glob | No | Filter by file pattern, e.g. "*.py" | |
| max_results | No | Max results (default: 15) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| matches | Yes |