Tasks
Snapshot Restore
The Snapshot Restore task is used to restore a stub or GPT chat task to a previously saved state using a snapshot created by the Snapshot Save task.
Use cases
- Restore a stub to a previous state for faster development iterations
- Restore a GPT chat task to a known good state
- Quickly switch between different stub configurations
Basic usage
Parameters
required string
snapshot_type The type of snapshot to restore. Valid values are:
"stub"
: Restores a stub snapshot"gpt_chat_task"
: Restores a GPT chat task snapshot
optional string
snapshot_name The name of the snapshot to restore. If not provided, the default snapshot name "_default"
will be used.
Default: "_default"
Result
Properties
restored.stubber_snapshot_uuid
The unique identifier of the snapshot that was restored.
restored.snapshot_name
The name of the snapshot that was restored.
restored.snapshot_type
The type of snapshot that was restored ("stub" or "gpt_chat_task").
restored.stubref
The reference to the stub that was restored.
Examples
Restore Default Stub Snapshot
Restore the stub to its default snapshot state:
Restore Named Stub Snapshot
Restore the stub to a specific named snapshot:
Restore GPT Chat Task Snapshot
Restore a specific GPT chat task to a saved state: