Spy Set Variable
spy_set_variableCreate or update a Scratch variable or list, and set its starting value during headless project editing.
Instructions
Create a variable or list, or change its starting value.
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": "spy_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | variable | |
| name | Yes | ||
| value | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |