Home/Tools/@tpmjs/tools-sprites-delete

spritesDeleteTool

@tpmjs/tools-sprites-delete

Delete a sprite and all its associated data including checkpoints. This action is irreversible.

Official
sandbox
v0.1.2
MIT

Interactive Playground

Test @tpmjs/tools-sprites-delete (spritesDeleteTool) 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-sprites-delete
pnpm add @tpmjs/tools-sprites-delete
yarn add @tpmjs/tools-sprites-delete
bun add @tpmjs/tools-sprites-delete
deno add npm:@tpmjs/tools-sprites-delete

2. Import the tool

import { spritesDeleteTool } from '@tpmjs/tools-sprites-delete';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { spritesDeleteTool } from '@tpmjs/tools-sprites-delete';

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

console.log(result.text);

Parameters

Available configuration options

Auto-extracted
name
Required
Type: string

Name of the sprite to delete

Schema extracted: 1/16/2026, 3:45:34 AM

README

@tpmjs/sprites-delete

Delete a sprite and all its associated data including checkpoints.

Installation

npm install @tpmjs/sprites-delete

Requirements

Usage

import { spritesDeleteTool } from '@tpmjs/sprites-delete';

const result = await spritesDeleteTool.execute({
  name: 'my-sandbox'
});

console.log(result);
// {
//   deleted: true,
//   name: 'my-sandbox'
// }

Input Parameters

ParameterTypeRequiredDescription
namestringYesName of the sprite to delete

Output

FieldTypeDescription
deletedbooleanWhether deletion was successful
namestringName of the deleted sprite

Warning

This action is irreversible. All data associated with the sprite, including:

  • Filesystem contents
  • All checkpoints
  • Execution history

will be permanently deleted.

Error Handling

The tool throws errors in these cases:

  • SPRITES_TOKEN environment variable is not set
  • Sprite not found (HTTP 404)
  • Invalid or expired API token (HTTP 401)
  • Network timeout (30 second limit)
  • API errors with descriptive messages

License

MIT

Statistics

Downloads/month

221

GitHub Stars

0

Quality Score

83%

Bundle Size

NPM Keywords

tpmjs
sprites
sandbox
code-execution
ai

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
spritesDeleteTool | TPMJS | TPMJS