Skip to content

Brain

brain_backup_restore

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).

Tool

brain_backup_restore

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load). Takes an automatic pre-restore snapshot first (safety net). Requires confirm:true AND confirmProductId echo; refuses on product/snapshot mismatch or embedding-dims mismatch. Async — returns { accepted, restoreId }; poll brain_restore_status.

Behavior

HTTP
POST /brain/restores

Arguments

NameTypeRequiredDescription
confirmbooleanMust be true. DESTRUCTIVE: the product's current Brain is wiped and replaced.
snapshotIdstringThe snapshot id to restore for the current product.
confirmProductIdstringMust EXACTLY equal the current product id (double-entry confirmation).

Response

FieldTypeAlwaysDescription
acceptedboolean
restoreIdstring

Try it

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).

When to use

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load). Takes an automatic pre-restore snapshot first (safety net). Requires confirm:true AND confirmProductId echo; refuses on product/snapshot mismatch or embedding-dims mismatch. Async — returns { accepted, restoreId }; poll brain_restore_status.

Example

Ask your agent something like this:

DESTRUCTIVE: full-replace restore of the current product's Brain from a snapshot (wipe + load).

The agent will invoke brain_backup_restore with these arguments:

{
  "confirm": "<confirm>",
  "snapshotId": "<snapshotId>",
  "confirmProductId": "<confirmProductId>"
}

Esc

Start typing to search the docs.

navigateselect