Create a variable or set its starting value
set_variableDeclare a project-wide variable with a starting value; variables are also created automatically when first mentioned in a script.
Instructions
Declares a project-wide variable with a starting value. Variables are also created automatically the first time a script mentions them.
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": {
"name": "<name>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | No | Starting value, default 0 |