LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithsandboxSandboxClientcaptureSnapshot
Method●Since v0.8

captureSnapshot

Copy
captureSnapshot(
  sandboxName: string,
  name: string,
  options: CaptureSnapshotOptions = {}
): Promise<
View source on GitHub
Snapshot
>

Parameters

NameTypeDescription
sandboxName*string
name*string
optionsCaptureSnapshotOptions
Default:{}

Capture a snapshot from a running sandbox.

Blocks until the snapshot is ready (polls with 2s interval).

Name of the sandbox to capture from.

Snapshot name.

Capture options (timeout).