context_assemble
Assembles replay and ranked retrieval into a prompt-ready context bundle, solving the problem of compact memory for AI agents.
Instructions
Assemble replay plus ranked retrieval into a prompt-ready context bundle. memory_checkout, the front door, wraps this assembly with current facts, citations, and a trust contract.
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": "context_assemble"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| max_tokens | No | Optional prompt token budget; sections are greedily packed and elisions are reported in the budget payload. | |
| session_id | No | ||
| replay_from_seq | No | ||
| max_recent_events | No |