import_file
Import local PDF, DOCX, TXT, MD, or HTML files into an OpenMemory RAG knowledge base, enabling retrieval-augmented generation over their content.
Instructions
Import a local file into OpenMemory RAG knowledge base. Supports PDF, DOCX, TXT, MD, HTML files.
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": {
"file_path": "<file_path>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags for the document | |
| user_id | No | User ID for the knowledge base (optional, defaults to 'rag_user') | |
| file_path | Yes | Absolute path to the file to import |