@tpmjs/tools-railway
Delete an environment variable from a Railway service.
Test @tpmjs/tools-railway (deleteVariable) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-railwaypnpm add @tpmjs/tools-railwayyarn add @tpmjs/tools-railwaybun add @tpmjs/tools-railwaydeno add npm:@tpmjs/tools-railwayimport { deleteVariable } from '@tpmjs/tools-railway';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { deleteVariable } from '@tpmjs/tools-railway';
const result = await generateText({
model: openai('gpt-4o'),
tools: { deleteVariable },
prompt: 'Your prompt here...',
});
console.log(result.text);(name: string, projectId: string, serviceId: string, environmentId: string) => Promise<unknown>Available configuration options
projectIdstringThe Railway project ID.
serviceIdstringThe Railway service ID.
environmentIdstringThe Railway environment ID.
namestringEnvironment variable name to delete.
Schema extracted: 2/27/2026, 4:20:23 AM
Railway API tools for AI agents. Manage projects, services, deployments, variables, and logs via Railway's GraphQL API.
npm install @tpmjs/tools-railway
Set the RAILWAY_TOKEN environment variable. Get your token from Railway Account Tokens.
export RAILWAY_TOKEN=your-token-here
import { listProjects, getDeployment, getBuildLogs } from '@tpmjs/tools-railway'; // List all projects const projects = await listProjects.execute({}); // Get deployment details const deployment = await getDeployment.execute({ id: 'deployment-id' }); // Get build logs const logs = await getBuildLogs.execute({ deploymentId: 'deployment-id', limit: 50 });
| Tool | Description |
|---|---|
listProjects | List all projects in your account or workspace |
getProject | Get project details with services and environments |
| Tool | Description |
|---|---|
getService | Get service details by ID |
getServiceInstance | Get service config for a specific environment |
| Tool | Description |
|---|---|
listDeployments | List deployments for a service/environment |
getDeployment | Get deployment details by ID |
redeployService | Trigger a redeploy |
restartDeployment | Restart a running deployment |
| Tool | Description |
|---|---|
getBuildLogs | Get build logs for a deployment |
getDeploymentLogs | Get runtime logs for a deployment |
| Tool | Description |
|---|---|
getVariables | Get environment variables for a service |
upsertVariable | Create or update an environment variable |
deleteVariable | Delete an environment variable |
MIT
Downloads/month
56
GitHub Stars
10
Quality Score