create_variable
Create a new environment variable by providing a key and value, optionally scoped to a project ID for organized n8n configuration.
Instructions
Create a new environment variable.
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 | |
| value | Yes | Variable value | |
| projectId | No | Project ID to scope the variable to |