Set Railway Variables
set-variablesSet environment variables for the active environment in Railway projects to configure application settings and manage deployment configurations.
Instructions
Set environment variables for the active environment
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspacePath": "<workspacePath>",
"variables": "<variables>"
},
"name": "set-variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspacePath | Yes | The path to the workspace to set variables in | |
| variables | Yes | Array of '{key}={value}' environment variable pairs to set | |
| service | No | The service to set variables for (optional) | |
| environment | No | The environment to set variables for (optional) | |
| skipDeploys | No | Skip triggering deploys when setting variables (optional) |