create_variable
Create custom environment variables in n8n to store reusable configuration values like API keys, URLs, or settings, enabling dynamic workflow automation.
Instructions
Create a custom environment variable in n8n.
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": {
"key": "<key>",
"value": "<value>"
},
"name": "create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable key/name (e.g., ENVIRONMENT, DEFAULT_EMAIL, MAX_RETRIES) | |
| value | Yes | Variable string value |