get_variables
Retrieve environment variables for a specified Railway service or project. Use this to view configuration values for a given environment.
Instructions
Get environment variables for a service
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": {
"projectId": "<projectId>",
"environmentId": "<environmentId>"
},
"name": "get_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID | |
| serviceId | No | The service ID (omit for shared/project-level variables) | |
| environmentId | Yes | The environment ID |