Home/Tools/@tpmjs/tools-e2b

setTimeout

@tpmjs/tools-e2b

Set or extend the timeout for an E2B sandbox. The sandbox will be automatically killed when the timeout expires. Requires E2B_API_KEY.

Official
sandbox
v0.1.0
MIT

Interactive Playground

Test @tpmjs/tools-e2b (setTimeout) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-e2b
pnpm add @tpmjs/tools-e2b
yarn add @tpmjs/tools-e2b
bun add @tpmjs/tools-e2b
deno add npm:@tpmjs/tools-e2b

2. Import the tool

import { setTimeout } from '@tpmjs/tools-e2b';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { setTimeout } from '@tpmjs/tools-e2b';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { setTimeout },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Parameters

Available configuration options

Auto-extracted
sandboxId
Required
Type: string

ID of the sandbox

timeoutMs
Required
Type: number

New timeout in milliseconds from now

Schema extracted: 1/20/2026, 3:49:49 AM

README

ERROR: No README data found!

Statistics

Downloads/month

0

Quality Score

0%

Bundle Size

NPM Keywords

tpmjs
e2b
sandbox
code-interpreter
ai
code-execution
cloud

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai