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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mcptoon_kb_index"
}
}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 |