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.
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": {
"session_id": "<session_id>"
},
"name": "agent_checkpoint"
}
}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) |