Search inside indexed documents
mcptoon_kb_searchReturn the PASSAGES in already-indexed documents that match a query, not the whole file. Use it instead of reading a large document whole when you need a few lines from it. Index a document first with mcptoon_kb_index.
Instructions
Return the PASSAGES in already-indexed documents that match a query, not the whole file. Use it instead of reading a large document whole when you need a few lines from it. Index a document first with mcptoon_kb_index.
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": "mcptoon_kb_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many passages to return (default 5). | |
| query | Yes | Words to find. Substrings and typos are handled. | |
| source | No | Restrict to sources whose name contains this text. Omit to search everything indexed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | ||
| notes | No | ||
| query | Yes |