Set a GDevelop scene variable
set_scene_variableSet or update a scene variable in a GDevelop project with primitive, structure, or array values to manage game state.
Instructions
Create or update an editable scene variable with a primitive, structure, or array 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": {
"projectId": "<projectId>",
"sceneName": "<sceneName>",
"name": "<name>",
"value": "<value>"
},
"name": "set_scene_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes | ||
| projectId | Yes | ||
| sceneName | Yes |