Build Session Context
build_contextAssemble a token-budgeted memory context block that combines core rules, semantic facts, and episodic history to ground a session around a query.
Instructions
Assemble a token-budgeted <memory_context> block combining Core rules, Semantic facts, and Episodic history for session grounding.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "build_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional retrieval context mode override. | |
| query | Yes | Topic or task query to ground context around. | |
| namespace | No | Project or workspace namespace. | |
| token_budget | No | Maximum token budget for assembled context (default 4096). |