memory_offload_context
Preserve the agent's working context by saving a snapshot that can be reloaded later. Use before task switches or context expiration to avoid data loss.
Instructions
Park the agent's working context as a restorable snapshot (offload).
Use before context runs out or when switching tasks, so the work can be reloaded
later with `memory_reload_context` instead of being lost. Snapshots are rotated
per session. Returns the new `snapshot_id` and `session_id`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trigger | No | Why the snapshot was taken, e.g. 'manual', 'pre-compaction', 'checkpoint'. | manual |
| session_id | Yes | Stable id for the working session this snapshot belongs to (used to reload later). | |
| snapshot_data | Yes | Arbitrary JSON object capturing the working context to park (open files, plan, decisions, TODOs, etc.). |