compact_skill_memory
Replaces a page of a skill's memory entries with a summary to condense full memory and free room while keeping every other entry.
Instructions
Replace a page of a skill's memory entries with one summary entry (for a memory that is full).
Replaces exactly the entries a get_skill_memory read showed (its `page`) with `summary`, which is
added as the newest entry; every other entry is kept. A full memory is condensed page by page:
an oldest_first read, then this tool on its page, until there is room. An entry no read showed
is never replaced: page_changed when the page's entries changed since the read, range_required
without a page or up_to (or when up_to covers more than one read), and stale_read when up_to
comes from a read older than a later compaction. Irreversible for the replaced entries.
Args:
skill_id: The skill whose memory to compact.
A bare name (the last part of an id, e.g. "keyword_research" or a skill's own name) is
accepted when exactly one skill the user can use has it; the result then carries `resolved`
with its full id. A name several skills share is not_found with their full ids in
`did_you_mean`, and so is a project skill's name: its memory is shared with the project's
members and is written only by its full id.
summary: The distilled summary of durable lessons to keep.
up_to: The older form: the `as_of` of a newest-first read; replaces every entry up to it.
page: The `page` value of the get_skill_memory read whose entries the summary covers.
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 |
|---|---|---|---|
| page | No | ||
| up_to | No | ||
| summary | Yes | ||
| skill_id | Yes |