zerodb_get_context
Retrieve session context with smart pruning that manages token limits, applies memory decay, and prioritizes important/recent memories.
Instructions
Get full conversation context window for a session with smart pruning. Automatically manages token limits, applies memory decay, and prioritizes important/recent memories.
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": {
"session_id": "<session_id>"
},
"name": "zerodb_get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_tokens | No | Maximum tokens to include in context window (default: 8192) | |
| session_id | Yes | Session identifier to retrieve context for | |
| include_stats | No | Include statistics about memory usage and pruning |