mem_search
Search stored project observations by full-text query or filters to recall decisions, bug fixes, and discoveries from previous sessions.
Instructions
Search persistent observations by full-text query and optional filters. Answers about the current project unless you pass a project or all_projects. Long bodies come back as a 400-character preview marked content_truncated; read one in full with mem_get_observation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Restrict results to this observation category. One of: bugfix, decision, policy, architecture, discovery, pattern, config, preference. Close synonyms are folded, so `bug` finds a `bugfix`. | |
| limit | No | Maximum number of results. The store clamps this to its configured maximum. | |
| query | Yes | Full-text query or an exact topic key containing a slash. | |
| scope | No | Restrict results to this memory scope: project, personal, or global. | |
| project | No | Restrict results to this project. | |
| match_mode | No | Require all query terms or allow any query term. | |
| all_projects | No | Search every project and ignore the project filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Carried when nothing matched, or when only some of the words did. | |
| count | No | How many memories are in `results` — the length of that list, not how many matched. When more matched than were returned, the hint says so. | |
| project | No | ||
| results | No | ||
| project_path | No | Where the project lives, when the answer came from a directory. | |
| project_source | No |