memory_prepare_compaction
Retrieves cold entries grouped by agent, providing token counts for summarization and subsequent memory compaction.
Instructions
Returns cold entries grouped by agent session — ready for YOU to summarize.
Read the returned entries, write your own digest with memory_write(memory_type='context'). Digests are read ONLY by agents: write them in compressed English (token-thrift) — facts, decisions, file paths; no prose. Code/paths/IDs stay verbatim. then run memory_compact() to archive the originals.
Workflow:
Call memory_prepare_compaction() → get grouped cold entries
Read and summarize them yourself
Call memory_write(memory_type='context', title='Digest: ...', content='your summary')
Call memory_compact() → archives cold entries, keeps your digest
Returns: str: Cold entries grouped by agent, with token counts.
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": "memory_prepare_compaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |