@tpmjs/tools-unsandbox
Create a snapshot of the current session state for backup or cloning.
Test @tpmjs/tools-unsandbox (createSessionSnapshot) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-unsandboxpnpm add @tpmjs/tools-unsandboxyarn add @tpmjs/tools-unsandboxbun add @tpmjs/tools-unsandboxdeno add npm:@tpmjs/tools-unsandboximport { createSessionSnapshot } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createSessionSnapshot } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { createSessionSnapshot },
prompt: 'Your prompt here...',
});
console.log(result.text);(session_id: string, hot?: boolean, ttl?: number, name?: string) => Promise<unknown>Available configuration options
session_idstringThe session ID
namestringOptional snapshot name
hotbooleanCreate hot snapshot without stopping container. Default: false
ttlnumberAuto-delete after N seconds (optional)
Schema extracted: 3/3/2026, 4:21:04 AM
ERROR: No README data found!
Downloads/month
560
GitHub Stars
0
Quality Score