compact
Condense the conversation when context fills, save a dense state to permanent memory, and return it so you can continue; previous details are still retrievable via recall.
Instructions
Compact the conversation when the context window is filling up (call around 70% full, before turns scroll away). Summarizes the session into a dense STATE block, saves it to permanent memory, and returns it. Continue from the returned block and treat earlier turns as discarded - nothing is lost, recall can retrieve it.
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": {
"conversation": "<conversation>"
},
"name": "compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conversation | Yes | The conversation so far, as text. |