memory_semantic_search
Search stored memories by semantic meaning instead of exact keywords. Retrieve relevant context quickly using filters, score thresholds, and preview or full content.
Instructions
Perform a semantic search using vector embeddings.
Returns compact previews by default. Use content_mode="full" for complete content.
Args:
query: Search query text
top_k: Maximum number of results (legacy name; default 5 if neither limit nor top_k)
limit: Alias for top_k — preferred name; honored so callers matching memory_list work
metadata_filters: Optional metadata filters
min_score: Minimum similarity score threshold
content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content
preview_chars: Max chars for preview (default: 300, ignored when content_mode="full")
fields: Optional list of fields to return. Include "score" to keep {memory, score} envelope;
omit "score" for flat list of memory dicts.
follow: Lineage mode. Default active (excludes superseded memories).
latest / full_history as documented on memory_list;
all is the explicit unfiltered forensic escape hatch.
Omitting follow is NOT unfiltered — it means the safe default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| top_k | No | ||
| fields | No | ||
| follow | No | ||
| min_score | No | ||
| content_mode | No | preview | |
| preview_chars | No | ||
| metadata_filters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |