object_add_instance_variable
Adds a number, text, or boolean instance variable to a Construct 2 object or family and sets its initial value on every existing instance.
Instructions
Add an instance variable (number, text or boolean) to an object or family; every existing instance gets
initial.
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": {
"project": "<project>",
"object": "<object>",
"name": "<name>"
},
"name": "object_add_instance_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| object | Yes | ||
| initial | No | ||
| project | Yes | ||
| var_type | No | number | |
| editor_sync | No |