add_variable
Add numeric values to a global variable or append text to it. Supports summing integers and concatenating strings in show variables.
Instructions
Add to / extend a global show variable (AddVar).
Numeric values are summed; text values are concatenated.
Args:
var_name: Variable name (should start with $)
value: Value to add (numeric) or append (text)
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>",
"value": "<value>"
},
"name": "add_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| var_name | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |