context
Load project memory to provide a session welcome or task-specific pack of decisions, constraints, lessons, and reminders for guiding work.
Instructions
Load project memory: the session welcome, or a context pack for a task.
welcome: overdue reminders, the active priority-5 norms, reminders due within 7 days, then the highest-scoring active memories (at most 3 from _shared); sent once per session (not repeated on --resume, whose context already has it; resent on SessionStart compact|clear, followed by up to 8 memories the agent wrote or read before it, kind "trail", and with a coloured systemMessage telling the person what was recovered). With session, later calls add: overdue reminders every 10 messages; with prompt, up to 5 memories whose title, tags or keywords hold a rare word of the message; and a nudge to save when the session has written no memory. task: decisions, constraints and lessons matching the task (Spanish and English stopwords ignored; with 3+ words a memory must hold 2 of them and score >= 25% of the best hit; constraints on files always enter), up to 3 memories one link (any kind) from them, and up to 5 related notes to open with read, within budget_tokens. Returns JSON {"text", "entries": [{"path", "score", "kind"}]}; score is 0-1, or null for norms, reminders, recalled and linked memories (welcome adds "already_sent"). The first welcome of a session may run the maintenance configured in episteme.toml (notice of pending review items, archiving of expired memories, vault backup), so this tool is not read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "welcome" (session start) or "task" (needs task). | welcome |
| task | No | task: what you are about to do, in a few words. | |
| prompt | No | welcome, from the UserPromptSubmit hook: the user's message (${prompt}); adds up to 5 memories that match its rare words. | |
| source | No | Only for the SessionStart hook: ${source} (compact or clear). | |
| project | No | Project; defaults to --project. | |
| session | No | welcome: session id; the welcome is sent once per session. | |
| hook_event | No | Only for Claude Code hooks: ${hook_event_name}. Omit otherwise. | |
| budget_tokens | No | task: size of the context pack (1 token ~ 4 chars). |