@tpmjs/tools-sprites-list
List all sprites in the account with their current status and metadata
Test @tpmjs/tools-sprites-list (spritesListTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-sprites-listpnpm add @tpmjs/tools-sprites-listyarn add @tpmjs/tools-sprites-listbun add @tpmjs/tools-sprites-listdeno add npm:@tpmjs/tools-sprites-listimport { spritesListTool } from '@tpmjs/tools-sprites-list';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { spritesListTool } from '@tpmjs/tools-sprites-list';
const result = await generateText({
model: openai('gpt-4o'),
tools: { spritesListTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
No schema available for this tool.
List all sprites in your account with their current status and metadata.
npm install @tpmjs/sprites-list
SPRITES_TOKEN environment variable - Get your token from https://sprites.devimport { spritesListTool } from '@tpmjs/sprites-list'; const result = await spritesListTool.execute({}); console.log(result); // { // sprites: [ // { name: 'my-sandbox', status: 'running', createdAt: '2024-01-15T10:30:00Z' }, // { name: 'test-env', status: 'stopped', createdAt: '2024-01-14T08:00:00Z' } // ], // count: 2 // }
This tool takes no input parameters.
| Field | Type | Description |
|---|---|---|
sprites | Sprite[] | Array of sprites in the account |
count | number | Total number of sprites |
| Field | Type | Description |
|---|---|---|
name | string | Unique 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