Update n8n Variable
n8n_update_variableUpdate a workflow variable's value in n8n by specifying its ID, key, and new value, enabling programmatic variable changes.
Instructions
Update a workflow variable's value.
Args:
id (string): Variable ID
key (string): Variable key/name
value (string): New variable value
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": {
"id": "<id>",
"key": "<key>",
"value": "<value>"
},
"name": "n8n_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variable ID | |
| key | Yes | Variable key/name | |
| value | Yes | New variable value |