lm_rag_index
Index TXT/MD/PDF/DOCX files with local embeddings and source metadata for citation-checked search and answers. Use replace to rebuild the collection.
Instructions
Index selected TXT/MD/PDF/DOCX files with local embeddings and source/page/hash metadata. Roots set by LM_MCP_RAG_ROOTS. replace rebuilds collection.
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": {
"collection": "<collection>",
"paths": "<paths>",
"embedding_model": "<embedding_model>"
},
"name": "lm_rag_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| replace | No | ||
| collection | Yes | ||
| embedding_model | Yes |