surface_relevant_context
Retrieve past memories relevant to a topic by searching with keyword and tags. Get ranked entries for injection into current working context.
Instructions
Retrieve past memory entries relevant to a topic and return a structured context brief.
Searches memory_entries by topic keyword and optional tag list, ranks by
relevance, and formats the top N entries for injection into the current
agent's working context.
Args:
topic: The topic or task description to search for.
tags: Optional comma-separated topic tags to include (e.g. 'methods,phd').
top_n: Maximum number of entries to return (default 5).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| tags | No | ||
| top_n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |