Overview
Memory tools provide access to persistent, database-backed workspace storage. This is separate from the local filesystem and designed for agent memory, decisions, context, and long-term knowledge.Use
memory_* tools for workspace storage (HEARTBEAT.md, MEMORY.md, daily logs, etc.).
Use read_file/write_file for local filesystem operations.Tools
memory_search
Search past memories, decisions, and context using hybrid search (full-text + semantic). Returns relevant snippets with relevance scores. Input Parametersstring
required
The search query. Use natural language to describe what you’re looking for.
integer
default:5
Maximum number of results to return (min: 1, max: 20)
string
The original search query
array
Array of search results with content, score, document ID, and match type
integer
Number of results returned
string
Relevant snippet from the document
number
Relevance score (higher is more relevant)
string
UUID of the source document
boolean
True if both full-text and semantic search matched
memory_write
Write to persistent memory (database-backed storage). Use for important facts, decisions, preferences, or lessons learned that should be remembered across sessions. Input Parametersstring
required
The content to write to memory. Be concise but include relevant context.
string
default:"daily_log"
Where to write:
memory- MEMORY.md (curated long-term facts)daily_log- today’s timestamped logheartbeat- HEARTBEAT.md checklist- Custom path like
projects/alpha/notes.md
boolean
default:true
If true, append to existing content. If false, replace entirely.
string
Always “written” on success
string
Path where content was written
boolean
Whether content was appended (true) or replaced (false)
integer
Number of bytes written
- Content cannot be empty
- Rate limited: 20 calls per minute, 200 per hour
- Identity files are protected from modification
memory_read
Read a file from workspace memory (database-backed storage). Use this to read files shown bymemory_tree.
Input Parameters
string
required
Path to the file (e.g.,
MEMORY.md, daily/2024-01-15.md, projects/alpha/notes.md)string
Path to the file that was read
string
File content
integer
Number of words in the content
string
RFC3339 timestamp of last update
ExecutionFailed: File not found or read failed
memory_tree
View the workspace memory structure as a tree. Returns a hierarchical view of files and directories.The workspace is separate from the local filesystem. Use
memory_read to read files shown here, not read_file.string
default:""
Root path to start from (empty string for workspace root)
integer
default:1
Maximum depth to traverse (1 = immediate children only, max: 10)
/ and may have children.
Example
- Maximum depth: 10 levels
- Directories shown with trailing
/ - Files shown without trailing slash
- Empty directories shown as simple strings