Get Chat Context
memory_chat_contextSelects and returns relevant stored memories to inject as context for the current prompt within a character budget, so assistants can start each turn with useful history.
Instructions
Returns the optimal set of memories to inject as context for the current prompt, respecting a character budget. This is typically the first tool an assistant calls at the start of a turn.
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": {
"prompt": "<prompt>"
},
"name": "memory_chat_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The current user prompt or conversation snippet | |
| user_id | No | ||
| max_chars | No | ||
| namespace | No | ||
| max_memories | No |