as_prompt
Export relevant memories formatted for LLM context injection. Supports XML, ChatML, markdown, and raw text for optimizing prompts.
Instructions
Export memories formatted for LLM context injection. USE THIS WHEN: you need to inject relevant memories directly into a prompt or system message. Returns a formatted block of memories optimized for your LLM's preferred format. Supports XML (Claude), ChatML (OpenAI), markdown, and raw text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| format | No | xml | |
| max_tokens | No | ||
| limit | No | ||
| tags | No | ||
| type | No | ||
| include_metadata | No | ||
| verbatim | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |