Compact context
context_compactSummarize accumulated history into a dense context block, snapshot state, and re-hydrate tracked files to reset and continue with a compact ground truth.
Instructions
Summarize accumulated history into a dense block, snapshot the ledger, re-hydrate tracked files, and run Pre/PostCompact hooks. Returns the compacted context block to install as new ground truth.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "context_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preserve | No | Extra preservation instructions, e.g. 'keep all exact error strings'. | |
| sessionId | No | ||
| transcript | No | Required in passthrough mode: the full history to compact. |