oc_journal_compact
Condenses a sliding window of journal entries into a compact summary using deterministic, checkpoint, or host LLM sampling strategies.
Instructions
Compress a sliding window of journal entries into a compact model-friendly summary. Defaults to a deterministic recent_k strategy that fits a token budget. checkpoint_only returns milestone-flagged entries. sampling forwards a summarisation prompt to the host LLM via sampling/createMessage — only available when the client advertises the sampling capability; returns { status: "unsupported_by_host" } otherwise. OpenChrome never uses its own LLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Optional MCP session id filter. The `recent_steps` window is taken across all sessions first, then filtered by this id — so a busy multi-session journal may yield fewer than `recent_steps` entries for one session; raise `recent_steps` to compensate. When omitted, all recent entries are considered. | |
| recent_steps | No | How many recent journal entries to consider. Default 50. | |
| token_budget | No | Approximate token budget for the summary text. Default 1024. | |
| strategy | No | Compaction strategy. Defaults to `recent_k` (deterministic). |