mindwiki_get_relevant_context
Retrieve the most relevant vault pages for a concrete agent goal, with optional constraints. Use this before planning or making changes when you want the AI to bring its own context.
Scope: read
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
goal | string | Yes | The work goal or question the agent needs context for |
constraints | array of strings | No | Optional constraints, domains, files, or preferences that should shape retrieval |
limit | number | No | Max pages to include (default: 8, max: 20) |
Example Request
json
{
"tool": "mindwiki_get_relevant_context",
"arguments": {
"goal": "Plan the next milestone for the onboarding redesign",
"constraints": [
"include decisions from the last quarter",
"exclude experimental drafts"
],
"limit": 10
}
}Example Response
json
{
"pages": [
{ "path": "projects/onboarding-redesign/spec.md", "title": "Onboarding Redesign Spec", "relevance": 0.94 },
{ "path": "decisions/2026-q1-onboarding-flow.md", "title": "Q1 Onboarding Flow Decision", "relevance": 0.88 },
{ "path": "research/activation-metrics.md", "title": "Activation Metrics", "relevance": 0.82 }
],
"rationale": "Selected pages directly tied to the onboarding redesign with high recency and structural relevance to milestone planning."
}For curated, pre-selected page bundles, use mindwiki_get_context_pack instead. For free-form Q&A with synthesized answers, use mindwiki_ask.