Actions30
Snapshot → Create
AI-generatedSummary
Create a snapshot from an existing sandbox in E2B, optionally naming the snapshot template, with a configurable timeout for the operation.
Inputs
- Sandbox ID (required) — The ID of the sandbox to snapshot.
- Snapshot Name — An optional name to assign to the snapshot template.
- Timeout — Timeout in seconds for the snapshot creation operation (default is 300 seconds).
Output shape
a single JSON object containing snapshotId and names array representing the created snapshot
The output JSON contains snapshotId (string) and names (array of strings). Operation may time out based on the provided timeoutSeconds parameter.
Examples
Example 1: Create a snapshot with a name
Provide Sandbox ID 'abc123', set Snapshot Name to 'MySnapshot', leave Timeout as default 300