@tpmjs/tools-sprites-sessions
List active execution sessions for a sprite. Useful for monitoring running commands or attaching to existing sessions.
Test @tpmjs/tools-sprites-sessions (spritesSessionsTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-sprites-sessionspnpm add @tpmjs/tools-sprites-sessionsyarn add @tpmjs/tools-sprites-sessionsbun add @tpmjs/tools-sprites-sessionsdeno add npm:@tpmjs/tools-sprites-sessionsimport { spritesSessionsTool } from '@tpmjs/tools-sprites-sessions';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { spritesSessionsTool } from '@tpmjs/tools-sprites-sessions';
const result = await generateText({
model: openai('gpt-4o'),
tools: { spritesSessionsTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
namestringName of the sprite to list sessions for
Schema extracted: 1/16/2026, 3:45:37 AM
List active execution sessions for a sprite.
npm install @tpmjs/sprites-sessions
SPRITES_TOKEN environment variable - Get your token from https://sprites.devimport { spritesSessionsTool } from '@tpmjs/sprites-sessions'; const result = await spritesSessionsTool.execute({ name: 'my-sandbox' }); console.log(result); // { // sessions: [ // { id: 'sess_123', status: 'active', startedAt: '2024-01-15T10:30:00Z', command: 'python server.py' }, // { id: 'sess_124', status: 'completed', startedAt: '2024-01-15T10:25:00Z' } // ], // count: 2 // }
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the sprite to list sessions for |
| Field | Type | Description |
|---|---|---|
sessions | ExecSession[] | Array of execution sessions |
count | number | Total number of sessions |
| Field | Type | Description |
|---|---|---|
id | string | Unique session identifier |
status | 'active' | 'completed' | 'terminated' | Session status |
startedAt | string | ISO 8601 timestamp when session started |
command | string? | Optional command that started the session |
The tool throws errors in these cases:
SPRITES_TOKEN environment variable is not setMIT
Downloads/month
0
GitHub Stars
0
Quality Score