@tpmjs/official-sandbox-shell
List files and directories in the sandbox workspace.
listFiles requires a sandbox session (_sandboxWorkDir not set)
Last checked: 2/26/2026, 4:20:23 AM
Test @tpmjs/official-sandbox-shell (listFiles) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/official-sandbox-shellpnpm add @tpmjs/official-sandbox-shellyarn add @tpmjs/official-sandbox-shellbun add @tpmjs/official-sandbox-shelldeno add npm:@tpmjs/official-sandbox-shellimport { listFiles } from '@tpmjs/official-sandbox-shell';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { listFiles } from '@tpmjs/official-sandbox-shell';
const result = await generateText({
model: openai('gpt-4o'),
tools: { listFiles },
prompt: 'Your prompt here...',
});
console.log(result.text);(path?: string, maxDepth?: number, recursive?: boolean, _sandboxWorkDir?: string) => Promise<unknown>Available configuration options
pathstringDirectory path relative to workspace root (default: root)
recursivebooleanList recursively (default: false)
maxDepthnumberMaximum depth for recursive listing (default: 3)
_sandboxWorkDirstringInjected by sandbox server — workspace directory
Schema extracted: 2/26/2026, 4:20:22 AM
ERROR: No README data found!
Downloads/month
98
GitHub Stars
15
Quality Score