search
Search repository code with explicit intent: use exact mode for deterministic file/symbol lookup, or related mode for ranked pattern discovery.
Instructions
Route repository search by explicit intent. Use intent='exact' for deterministic fast-substrate answers when you know the exact symbol or file target, and intent='related' for ranked related-item and pattern discovery over the prepared full-engine artifacts.
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": {
"intent": "<intent>",
"search_type": "<search_type>",
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language intent to rank against the prepared full-engine artifacts. | |
| top_k | No | How many ranked hits to return. Default: 5. | |
| intent | Yes | Query intent. exact = deterministic fast lookup, related = ranked discovery. | |
| search_type | Yes | Select file results, symbol results, or both together. | |
| include_kinds | No | Optional symbol-kind filter, e.g. ["function", "method", "variable"]. | |
| retrieval_mode | No | For related search, force semantic-only, keyword-only, or mixed retrieval. Defaults to both. |