search_memory
Search stored memories with full-text queries to retrieve relevant context. Filter by category or project, and get results ranked by relevance and importance to recall information when needed.
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 |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default 10. Results are ranked by relevance and importance before truncation. | |
| 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. | |
| project | No | Filter results to a specific project. Omit to search across all projects. | |
| category | No | Filter results to a single category. Omit to search across all categories. |