Place a GDevelop object instance
add_object_instanceAdds an editable instance of a scene object to a GDevelop scene, with optional instance variables for initialization.
Instructions
Place an editable initial instance of a scene object with optional instance variables.
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>",
"objectName": "<objectName>",
"x": "<x>",
"y": "<y>"
},
"name": "add_object_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| zOrder | No | ||
| projectId | Yes | ||
| sceneName | Yes | ||
| variables | No | ||
| objectName | Yes |