Create variable
n8n_create_variableAdd an environment variable to n8n by specifying its key and value, enabling dynamic configuration in workflows.
Instructions
Create a new environment variable in n8n (key-value pair).
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 | |
| value | Yes | Variable value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||