memory_ingest
Import PDF, text, Markdown, or JSON files and directories into a memory database, chunking content for searchable retrieval and knowledge base building.
Instructions
Ingest documents or directories into memory database.
USE THIS WHEN:
User wants to import a document (PDF, TXT, MD, JSON)
Need to batch import a directory of documents
Building knowledge base from existing files
SUPPORTED FORMATS:
PDF files (.pdf)
Text files (.txt, .md, .markdown, .rst)
JSON files (.json)
MODE:
file: Ingest single document (requires file_path)
directory: Batch ingest all documents in directory (requires directory_path)
CHUNKING:
Documents are split into chunks for better retrieval
chunk_size: Target characters per chunk (default: 1000)
chunk_overlap: Overlap between chunks (default: 200)
Examples: {"file_path": "/path/to/document.pdf"} {"file_path": "/path/to/notes.md", "tags": ["documentation"]} {"directory_path": "/path/to/docs", "recursive": true} {"directory_path": "/path/to/project", "file_extensions": ["md", "txt"], "tags": ["project-docs"]}
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": "memory_ingest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to apply to all ingested memories | |
| store | No | Target store partition (default: 'default'). Use 'docs' for documents, 'all' for cross-store search. | |
| file_path | No | Path to single document (for file mode) | |
| max_files | No | For directory mode: maximum files to process | |
| recursive | No | For directory mode: process subdirectories | |
| chunk_size | No | Target chunk size in characters | |
| memory_type | No | Type label for created memories | document |
| chunk_overlap | No | Overlap between chunks | |
| directory_path | No | Path to directory (for directory mode) | |
| file_extensions | No | For directory mode: file types to process |