kilo_rag_search
Run read-only semantic searches over an indexed codebase to find relevant files and code snippets without pulling the whole repository into context.
Instructions
Delegate READ-ONLY codebase search/exploration to Kilo, so you (the architect) can locate relevant code without pulling the whole repository into your own context.
This tool is a standing resource for YOUR OWN work: use it whenever you need to understand or navigate an indexed codebase — also (and especially) when you are implementing or answering questions yourself and NOT delegating anything to kilo_implement.
Runs Kilo's explore agent, which uses semantic (vector) search over the
workspace's existing index plus targeted file reads, and returns a summary
with file paths and code snippets. It does NOT modify files.
Note: this reuses the index maintained by the Kilo IDE extension — it does not create or refresh the index. If a workspace was never indexed by the extension, semantic search falls back to plain text/glob search.
Typical flow: call this to find the relevant files, reason about the design yourself, then hand the concrete file list to kilo_implement via focus_files.
Returns a text report: Exit Code, STDOUT (the findings), STDERR (the
run trace). Review STDOUT as the reviewer.
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": "kilo_rag_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional sub-directory (relative to working_directory) to restrict the search. Leave empty to search the whole workspace. | |
| query | Yes | Natural-language description of what to find (concepts, behaviours, symbols). This is a semantic/vector search backed by Kilo's codebase index, so describe intent rather than exact strings. | |
| working_directory | No | Absolute path to the workspace root to search. MUST be the exact same absolute path Kilo indexed (the vector collection is keyed by workspace path), otherwise the search misses the index. Defaults to the server's current working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |