get_context
Retrieve related nodes and links for a topic to recall what the memory already knows. Call before answering when prior context may be relevant.
Instructions
Retrieve related nodes and links for a topic/keyword — what the memory already knows. Call BEFORE answering when a question may have prior context worth recalling. For the normal start-of-turn load, prefer pre_turn (one shot: status + compact context).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Search depth (1-3, default 1) | |
| topic | Yes | Main keyword to search context for | |
| format | No | 'full' multi-line (default) or 'compact' single-line for system prompt injection. | full |
| context | No | Context path (e.g. java/spring). Defaults to active context. | |
| keywords | No | Additional keywords to broaden the context search | |
| max_tokens | No | Max output size in approx tokens (default 400, use 150 for compact injection). |