@tpmjs/tools-vercel
Create a new environment variable on a Vercel project.
Test @tpmjs/tools-vercel (createEnvVar) 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 { createEnvVar } from '@tpmjs/tools-vercel';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createEnvVar } from '@tpmjs/tools-vercel';
const result = await generateText({
model: openai('gpt-4o'),
tools: { createEnvVar },
prompt: 'Your prompt here...',
});
console.log(result.text);(key: string, value: string, target: string[], idOrName: string, type?: string, teamId?: string) => Promise<unknown>Available configuration options
idOrNamestringProject ID or name (e.g., "prj_xyz" or "my-project").
keystringEnvironment variable name (e.g., "DATABASE_URL").
valuestringEnvironment variable value.
targetarrayTarget environments for this variable (production, preview, development).
typestringVariable type: plain, secret, encrypted, or sensitive (default: encrypted).
teamIdstringTeam ID for team-scoped requests.
Schema extracted: 3/1/2026, 4:28:22 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