compact_skill_memory
Condense a full skill memory into one summary entry, replacing all entries up to a given as_of while keeping newer ones. Preserves durable lessons and frees memory space.
Instructions
Replace a skill's memory entries with one summary entry (for a memory that is full).
Replaces every entry up to `up_to` (the `as_of` a get_skill_memory read returned) with
`summary`; entries added after that read are kept. Irreversible for the replaced entries.
Args:
skill_id: The skill whose memory to compact.
summary: The distilled summary of durable lessons to keep.
up_to: The `as_of` value from get_skill_memory. Omit it only to replace every entry.
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": {
"skill_id": "<skill_id>",
"summary": "<summary>"
},
"name": "compact_skill_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up_to | No | ||
| summary | Yes | ||
| skill_id | Yes |