@tpmjs/tools-vercel
Get billing usage and consumption data (requests, bandwidth, invocations) for a date range.
Test @tpmjs/tools-vercel (getUsage) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-vercelpnpm add @tpmjs/tools-vercelyarn add @tpmjs/tools-vercelbun add @tpmjs/tools-verceldeno add npm:@tpmjs/tools-vercelimport { getUsage } from '@tpmjs/tools-vercel';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { getUsage } from '@tpmjs/tools-vercel';
const result = await generateText({
model: openai('gpt-4o'),
tools: { getUsage },
prompt: 'Your prompt here...',
});
console.log(result.text);(to: string, from: string, teamId?: string) => Promise<unknown>Available configuration options
fromstringStart date in ISO 8601 UTC format (e.g., "2025-01-01T00:00:00.000Z"). Inclusive.
tostringEnd date in ISO 8601 UTC format (e.g., "2025-02-01T00:00:00.000Z"). Exclusive.
teamIdstringTeam ID for team-scoped requests.
Schema extracted: 3/1/2026, 4:26:03 AM
Vercel API tools for AI agents. Manage deployments, projects, domains, environment variables, and build logs.
npm install @tpmjs/tools-vercel
Set your Vercel API token:
export VERCEL_TOKEN="..."
import { listDeployments, getProject, listEnvVars } from '@tpmjs/tools-vercel'; const deployments = await listDeployments.execute({ projectId: 'my-project', limit: 5 }); const project = await getProject.execute({ idOrName: 'my-project' }); const envVars = await listEnvVars.execute({ idOrName: 'my-project' });
| Tool | Description |
|---|---|
listDeployments | List deployments with optional state filtering |
getDeployment | Get details of a specific deployment |
cancelDeployment | Cancel a building deployment |
listProjects | List all projects in your account |
getProject | Get details of a specific project |
listDomains | List all domains in your account |
getDomain | Get details of a specific domain |
listProjectDomains | List domains assigned to a project |
listEnvVars | List environment variables for a project |
createEnvVar | Create a new environment variable |
deleteEnvVar | Delete an environment variable |
getDeploymentEvents | Get build logs and events for a deployment |
MIT
Downloads/month
198
GitHub Stars
9
Quality Score