agent_checkpoint
Snapshot an agent's working state to enable resuming after a restart or crash. Save arbitrary JSON and a summary line with a sequence number.
Instructions
Snapshot the agent's working state so a restart/crash can resume from exactly here. state is an arbitrary JSON scratchpad (cursor, partial results, plan, open files). summary is a 1-line 'where I am'. Returns the checkpoint with its monotonic seq. Call periodically after each chunk of progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Working-state scratchpad (arbitrary JSON) | |
| summary | No | One-line human-readable 'where I am' | |
| session_id | Yes | Session id to checkpoint | |
| token_estimate | No | Optional explicit token size of the state (auto-estimated if omitted) |