Save capsule state
save_stateAdd or update state items in a capsule. Items are upserted by id: pass an existing item id to modify it (including marking it "superseded", which is how items are deleted — the trail is kept), or omit id to create a new item. Requires base_revision to match the capsule's current revision; a mismatch is rejected with stale_revision. Set next_action to tell the next agent what to do.
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": {
"capsule_id": "<capsule_id>",
"base_revision": "<base_revision>",
"items": "<items>"
},
"name": "save_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| capsule_id | Yes | ||
| next_action | No | ||
| base_revision | Yes |