Search indexed documents
searchFind matching passages in indexed Korean documents by query, with morpheme-aware BM25 ranking and optional semantic matches for answering questions from local files.
Instructions
Find the passages in indexed documents that match a query.
Use this to answer a question from the user's documents; use list_documents instead to see which documents exist. Korean morpheme analysis drops particles and endings, so "예산을" also finds "예산의". Ranking is BM25; with embeddings enabled, the last quarter of the hits are semantic matches the keyword search missed. Each hit has the passage text (a table is returned whole as a Markdown table, with merged cells repeated in every row they span), its heading, the document path and title, and a chunk number; pass the path and chunk to read_document for the surrounding text. Read-only. If nothing matches, try other or fewer words, or check that the folder was indexed.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "auto" uses hybrid when the server runs with embeddings and keyword otherwise; "vector" and "hybrid" need embeddings. | auto |
| limit | No | Maximum number of hits, 1-30. | |
| query | Yes | Keywords to look for, e.g. "청년 주거 지원 대상". Plain words work better than a full sentence. | |
| folder | No | Only documents under this folder (and its subfolders). Omit for every indexed document. | |
| match_all | No | Only return chunks that contain every query word (keyword side only). |