create_variable
Creates an n8n variable with a key and value, optionally assigned to a specified project.
Instructions
Create an n8n variable, optionally in a specified project.
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 | ||
| value | Yes | ||
| projectId | No | Opaque n8n resource ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| key | No | ||
| message | Yes |