get_context
Retrieve relevant prior context from your indexed library, adjusting detail based on your token budget. Supports semantic vector search and keyword matching, filtered by time frame and agent.
Instructions
Recall relevant prior context within a token budget.
Progressive disclosure: returns more detail when budget allows.
≤ 500 tokens → index only (type + first 12 words per entry)
≤ 2000 tokens → preview (type + first 40 words)
> 2000 tokens → full (complete content)
Combines semantic vector search (if fastembed available) with keyword
fallback, filtered to the last `days` days.
Args:
query: What you are looking for — natural language.
budget_tokens: How many tokens you can spend on context (default 2000).
agent_slug: Restrict to a specific agent's observations (optional).
days: How far back to search (default 90 days).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| budget_tokens | No | ||
| agent_slug | No | ||
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |