set_user_variable
Set a user-specific variable in grandMA2 console. Supports numeric, text, or delete values, with optional input dialog for text.
Instructions
Set a user-profile-specific variable (SetUserVar).
Args:
var_name: Variable name (should start with $)
value: Numeric, text, or None to delete the variable
input_dialog: If True (string values only), prompt with an input dialog
Returns:
str: Operation result message
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": {
"var_name": "<var_name>"
},
"name": "set_user_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| var_name | Yes | ||
| value | No | ||
| input_dialog | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |