Update variables
update-variables-toolReplace a form's custom variables — named values that logic rules read and write (scores, prices, outcome tallies). Pass the COMPLETE custom list from list-logic-options-tool, excluding entries with built_in true. Names use letters, numbers and underscores only; type is "number" (starts at 0) or "text" (starts empty). Built-in and field names are reserved. Create every variable BEFORE referencing it in set-block-logic-tool. Changes apply to the live form immediately. To remove or change the type of a variable in use, remove its references from the draft and publish first.
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": {
"form_slug": "<form_slug>",
"variables": "<variables>"
},
"name": "update-variables-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_slug | Yes | The form's slug. | |
| variables | Yes | The complete list of variables, e.g. [{"name": "lion", "type": "number"}, {"name": "owl", "type": "number"}]. Pass an empty array to remove all custom variables. |