mmar_create_class_instance
Creates a new element in a scene by instantiating a meta-class with its attribute instances.
Instructions
Create a new class instance (element/node) within a scene instance.
IMPORTANT: The API does NOT auto-create attribute instances. You MUST include them in the payload. For each attribute on the meta-Class, create an attribute_instance with:
uuid: new UUIDv4
name: same as meta-attribute name
value: the desired value (or the meta-attribute's default_value)
uuid_attribute: the meta-attribute's UUID
Example payload: { "uuid": "", "uuid_class": "", "name": "My Element", "coordinates_2d": {"x": 0, "y": 0, "z": 0}, "attribute_instance": [ { "uuid": "", "name": "Name", "value": "My Element", "uuid_attribute": "" } ] }
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": {
"scene_instance_uuid": "<scene_instance_uuid>",
"class_instance_data": "<class_instance_data>"
},
"name": "mmar_create_class_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_instance_data | Yes | JSON string of the ClassInstance data. Must include 'uuid', 'uuid_class', 'name', 'coordinates_2d', and 'attribute_instance' array. | |
| scene_instance_uuid | Yes | The UUID of the SceneInstance to add the element to |