mnemos_get_context
PAID (0.005 USDC). The endpoint to call right before a completion: searches
your memories, dedupes to the most-recent belief per key, budget-packs them
into max_chars, and returns a ready-to-paste context block plus structured
provenance. Content flagged as prompt-injection is excluded from the block.
Optionally assembled AS OF a past time. Returns an x402 quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Max memories to consider (max 25). | |
| as_of | No | ISO8601 -- assemble context as it stood at this time. | |
| query | Yes | What the upcoming completion is about. | |
| max_chars | No | Character budget for the assembled block. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||