@tpmjs/tools-sprites-get
Retrieve details of a specific sprite by name including status and configuration. Use this to check if a sprite exists and get its current state.
Test @tpmjs/tools-sprites-get (spritesGetTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-sprites-getpnpm add @tpmjs/tools-sprites-getyarn add @tpmjs/tools-sprites-getbun add @tpmjs/tools-sprites-getdeno add npm:@tpmjs/tools-sprites-getimport { spritesGetTool } from '@tpmjs/tools-sprites-get';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { spritesGetTool } from '@tpmjs/tools-sprites-get';
const result = await generateText({
model: openai('gpt-4o'),
tools: { spritesGetTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
namestringName of the sprite to retrieve
Schema extracted: 1/16/2026, 3:45:37 AM
Retrieve details of a specific sprite by name including status and configuration.
npm install @tpmjs/sprites-get
SPRITES_TOKEN environment variable - Get your token from https://sprites.devimport { spritesGetTool } from '@tpmjs/sprites-get'; const result = await spritesGetTool.execute({ name: 'my-sandbox' }); console.log(result); // { // name: 'my-sandbox', // status: 'running', // createdAt: '2024-01-15T10:30:00Z', // runtime: 'node:20' // }
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the sprite to retrieve |
| Field | Type | Description |
|---|---|---|
name | string | Name of the sprite |
status | 'creating' | 'running' | 'stopped' | 'error' | Current status |
createdAt | string | ISO 8601 timestamp of creation |
runtime | string? | Optional runtime configuration |
metadata | object? | Optional custom metadata |
The tool throws errors in these cases:
SPRITES_TOKEN environment variable is not setMIT
Downloads/month
0
Quality Score