update_variable
Replace both the key and value of an existing n8n variable by ID to correct or rename stored configuration values.
Instructions
Replace both the key and value of an existing n8n 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": {
"variableId": "<variableId>",
"key": "<key>",
"value": "<value>"
},
"name": "update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| projectId | No | ||
| variableId | Yes | Opaque n8n resource ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| key | No | ||
| message | Yes |