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.
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 |