Commands  ›   ›  Snapshot Export

Snapshot Export

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. Temp directory must be writable.

After it runs

SQLite snapshot database written to temp path. SnapshotRegistry.Current set to new DB.

When to use this

Don't use this when

Direct live model queries — use MCP context tools instead. Not for model modification.

Inputs

NameKindTypeRequiredDefaultDescription
scope config string no "model" Export scope: model, level, levels, view, scope_box, category, selection, sheet
level_name config string no Level name for level-scoped export
level_names config string no Comma-separated level names for multi-level export
scope_box_name config string no Scope box name for scope-box-scoped export
category config string no Category name for category-scoped export
sheet_number config string no Sheet number for sheet-scoped export

Returns

NameTypeDescription
statusstringExport status (ready)
elementsintNumber of elements exported
parametersintNumber of parameters exported
db_pathstringPath to the snapshot SQLite database

What you'll see in the chat

on start
Exporting model snapshot to local database...
Taking a snapshot of your model for analysis...
thinking
Resolving export scope...
Extracting model data to SQLite...
Registering snapshot database...
on success
Snapshot ready — {elements} elements, {parameters} parameters exported in {duration_ms}ms
on failure
Snapshot export failed: {error}

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/snapshot_export
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

snapshot export · model snapshot · export snapshot · sqlite export

Pillar