Create Environment
create-environmentCreate a new Railway environment for your project, optionally duplicating an existing environment and setting service variables to manage configurations.
Instructions
Create a new Railway environment for the currently linked project. Optionally duplicate an existing environment and set service variables.
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>",
"environmentName": "<environmentName>"
},
"name": "create-environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspacePath | Yes | The path to the workspace where the environment should be created | |
| environmentName | Yes | The name for the new environment | |
| duplicateEnvironment | No | The name of an existing environment to duplicate | |
| serviceVariables | No | Service variables to assign in the new environment (only works when duplicating) |