memo_context
Create a prompt-ready memory context pack for direct injection, bundling static profile, dynamic recent context, and relevant query hits without calling an LLM.
Instructions
Build prompt-ready memory context without calling the answer LLM.
Read-only. Unlike memo_search's raw hit list, this returns a budgeted, prompt-ready context pack for direct injection: static profile, dynamic recent context, query hits, omissions, and a readonly prompt wrapper.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of query hits retrieved for the pack (hybrid mode; clamped to 1-500). | |
| type | No | Restrict retrieval to one memory type (e.g. 'decision', 'fact'); None searches every type. | |
| source | No | Calling layer for consult attribution (e.g. 'claude-code', 'codex'); empty falls back to client info. | |
| question | Yes | Natural-language question used to retrieve and pack relevant memories. | |
| budget_chars | No | Total character budget for the returned readonly prompt wrapper; rows beyond the budget are trimmed and counted in 'omissions'. | |
| snippet_chars | No | Character cap per memory snippet inside the pack. | |
| include_dynamic | No | Include the dynamic section: up to 5 memories updated in the last 7 days. | |
| include_profile | No | Include the static profile section (identity/preference lines). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||