Skip to main content
Glama

checkpoint

Destructive

Checkpoints stand in for undo, which this session does not have. op=create saves the photo's CURRENT state, every live filter included, and returns a checkpoint_id. op=restore reopens that snapshot as a NEW image and closes the old one (replace, not copy): the old image id stops working once the close succeeds; if the close fails the result says close_failed: true, the old image stays open and both ids are valid. The result names the new id, e.g. "image N closed; restored as image M — use M from now on". A checkpoint (up to 100 MB; a larger one is said to be kept for this session only) is kept for 24 hours after it is made, whatever happens meanwhile: a crash, the server pausing or restarting, or your assistant reconnecting. One made in an earlier session is restored by its checkpoint_id as a NEW image and closes nothing (close the photo it replaces yourself), and op=list shows it as kept from an earlier session. op=list reports checkpoint_id, the image it belongs to, created_at and size in bytes, plus open: false for a checkpoint whose photo has since closed (still restorable) and pending: true while a create is still in flight. op=delete removes one. An unknown checkpoint_id on restore or delete is refused, naming every id that IS known. op=restore also returns the reopened image's base_type, precision and layers, like open_photo. Each photo holds at most 5 checkpoints (a 6th op=create REFUSES rather than silently evicting the oldest: delete one first) and at most 20 are kept in total across photos, since each takes disk space until deleted. This server also caps checkpoint disk use at 1024.0 MiB per session and 1024.0 MiB across all your sessions; op=create is refused at or above either, so free room with op=delete first.

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": {
      "op": "<op>"
    },
    "name": "checkpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes'create' exports the image's current state — every live filter included — to a disk-backed snapshot and returns a checkpoint_id. 'restore' reopens that snapshot as a NEW image and closes the old one (replace semantics, not a copy: the old image id stops working once the close succeeds — see 'close_failed' below for when it doesn't). 'list' reports every checkpoint (optionally scoped to one image): checkpoint_id, the image it currently belongs to (open: false if that image is confirmed gone — still restorable; pending: true while still being created), created_at, bytes — never a file path. 'delete' removes one, freeing its slot.
imageNoImage id, as returned by open_photo. Required for create. Optional for list (omit to list checkpoints for every image).
checkpoint_idNoRequired for restore / delete. The id create (or a prior list) reported for this checkpoint.

Output Schema

NameRequiredDescriptionDefault
bytesNo
imageNo
widthNo
heightNo
layersNo
deletedNo
base_typeNo
old_imageNo
precisionNo
close_noteNoWhat happened to the old image on a restore, including when it is still open.
created_atNo
checkpointsNo
close_failedNo
checkpoint_idNo
mindset_notesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / editor_notes
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / mindset_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / close_note
      Added value: +{
      +  "description": "What happened to the old image on a restore, including when it is still open.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / editor_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources