Create n8n Variable
n8n_create_variableCreate a global workflow variable that is accessible in all workflows via $vars.key. Provide key, value, and optional type for variable.
Instructions
Create a new global workflow variable accessible in all workflows via $vars.key.
Args:
key (string): Variable key/name
value (string): Variable value
type (string?): Variable type (default 'string')
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/name | |
| type | No | Variable type | string |
| value | Yes | Variable value |