Index a document for search
mcptoon_kb_indexChunk a local file or a URL into the knowledge base so mcptoon_kb_search can find passages in it. Indexing is what keeps the document out of your context window while staying searchable.
Instructions
Chunk a local file or a URL into the knowledge base so mcptoon_kb_search can find passages in it. Indexing is what keeps the document out of your context window while staying searchable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A URL to fetch and index instead of a local path. Reuses the cached copy within its TTL. | |
| path | No | A local file path to index. | |
| source | No | Optional label for this source in the index. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| error | No | ||
| chunks | Yes | ||
| source | Yes | ||
| indexed | Yes |