slice_and_retrieve
Archive previous context without deleting it, update the working summary, and return only context relevant to the current message to cut token usage and enable immediate execution.
Instructions
Non-destructively archive previous_context, update working_summary, and retrieve only the context needed for current_message so the AI can execute immediately with minimal tokens.
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": {
"previous_context": "<previous_context>",
"current_message": "<current_message>"
},
"name": "slice_and_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional slice/session identifier (defaults to "default"). | |
| current_message | Yes | The user's current message or active task to execute. | |
| previous_context | Yes | Required. Supply the previous conversation context (prior turns, decisions, and constraints) so ContextSlicer can archive it without deleting anything. |