mirror of
https://github.com/LeoYeAI/openclaw-master-skills.git
synced 2026-08-14 00:48:08 +00:00
3.4 KiB
3.4 KiB
Episodic Memory MCP Tools Reference
The episodic-memory plugin exposes two MCP tools for searching and displaying past conversations.
search
Search your episodic memory of past Claude Code conversations using semantic or text search.
Tool name: mcp__plugin_episodic-memory_episodic-memory__search
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string or string[] |
Yes | Search query. String for single-concept search, array of 2-5 strings for multi-concept AND search |
mode |
"vector" | "text" | "both" |
No | Search mode (default: "both"). Only used for single-concept searches |
limit |
number |
No | Maximum results to return, 1-50 (default: 10) |
after |
string |
No | Only return conversations after this date (YYYY-MM-DD) |
before |
string |
No | Only return conversations before this date (YYYY-MM-DD) |
response_format |
"markdown" | "json" |
No | Output format (default: "markdown") |
Search Modes
vector- Semantic similarity search using embeddingstext- Exact text matching (case-insensitive)both- Combined semantic + text search (default, recommended)
Single-Concept Search
{
query: "React Router authentication errors",
mode: "both",
limit: 10
}
Multi-Concept Search (AND)
Search for conversations containing ALL concepts:
{
query: ["authentication", "React Router", "error handling"],
limit: 10
}
Note: mode is ignored for multi-concept searches (always uses vector similarity).
Date Filtering
{
query: "refactoring patterns",
after: "2025-09-01",
before: "2025-10-01"
}
Response Format
Markdown (default)
Human-readable format with:
- Project name and date
- Conversation summary
- Matched exchange snippet
- Similarity score
- File path and line numbers
JSON
Machine-readable format:
{
"results": [...],
"count": 5,
"mode": "both"
}
read
Display a full conversation from episodic memory as markdown.
Tool name: mcp__plugin_episodic-memory_episodic-memory__read
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path |
string |
Yes | Absolute path to the JSONL conversation file |
startLine |
number |
No | Starting line number (1-indexed, inclusive) |
endLine |
number |
No | Ending line number (1-indexed, inclusive) |
Usage
Read entire conversation:
{
path: "/Users/name/.config/superpowers/conversation-archive/project/uuid.jsonl"
}
Read specific range:
{
path: "/Users/name/.config/superpowers/conversation-archive/project/uuid.jsonl",
startLine: 100,
endLine: 200
}
Response Format
Markdown-formatted conversation with:
- Message roles (user/assistant)
- Content (including tool uses and results)
- Line numbers for reference
Error Handling
Both tools return errors as text content with isError: true:
- Invalid parameters (validation errors)
- File not found
- Date parsing errors
- Search failures
Performance Notes
- Search is fast (< 100ms typically)
- Show can be slow for large conversations
- Use
startLine/endLineto paginate - Conversations can be 1000+ lines
- Use
- Vector search uses sqlite-vec with cached embeddings
- Text search uses SQLite FTS5 full-text index