memory_context_pack
Retrieves and formats the most relevant memories within a token budget, de-duplicating and flagging contradictions. Provides a ready-to-paste text block for prompts.
Instructions
Build a prompt-ready, token-budgeted block of the most relevant memories.
Prefer this over `memory_search` when you want text to paste straight into a
prompt: it selects and formats the highest-value memories within `max_tokens`,
de-duplicates, and flags contradictions. Access-controlled to this agent's
identity. Returns a formatted string (empty if nothing relevant is visible).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | Optional filter to a single owner id. Leave unset to include everything this agent may see. | |
| query | Yes | The task or question to gather relevant memories for. | |
| max_tokens | No | Approximate token budget for the returned block; the most relevant memories are selected to fit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |