search_memory
Retrieve relevant memories by querying with keywords or phrases. Results are ranked by relevance and importance, and searches are tracked for access patterns.
Instructions
Search stored memories using SQLite full-text search (FTS5). Returns results ranked by relevance with higher-importance memories boosted. Each search increments the retrieval_count on matched memories, tracking which memories are accessed most. Use at session start to load relevant context, or mid-session to recall specific information. Returns an array of matching memories with id, content, category, importance, project, created_at, and retrieval_count. Returns an empty array if no matches are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Full-text search query. Supports keywords, phrases, and SQLite FTS5 syntax (e.g., 'database AND migration', '"exact phrase"'). Broader queries return more results. | |
| category | No | Filter results to a single category. Omit to search across all categories. | |
| project | No | Filter results to a specific project. Omit to search across all projects. | |
| limit | No | Maximum number of results to return. Default 10. Results are ranked by relevance and importance before truncation. |