n8n_create_variable
Create environment variables in n8n to store configuration values securely across workflows. Specify key, value, type, and optional project ID.
Instructions
Create a new 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": "n8n_create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable key | |
| type | No | Variable type | |
| value | Yes | Variable value | |
| projectId | No | Project ID |