@tpmjs/tools-unsandbox
Spawn a new session or service from an image.
Test @tpmjs/tools-unsandbox (spawnFromImage) 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 { spawnFromImage } from '@tpmjs/tools-unsandbox';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { spawnFromImage } from '@tpmjs/tools-unsandbox';
const result = await generateText({
model: openai('gpt-4o'),
tools: { spawnFromImage },
prompt: 'Your prompt here...',
});
console.log(result.text);(image_id: string, name?: string, ports?: number[], bootstrap?: string, network_mode?: string) => Promise<unknown>Available configuration options
image_idstringThe image ID
namestringService name
network_modestringNetwork isolation mode. Default: 'zerotrust'
portsarrayPorts to expose
bootstrapstringOptional bootstrap script
Schema extracted: 3/3/2026, 4:21:16 AM
ERROR: No README data found!
Downloads/month
560
GitHub Stars
0
Quality Score