add_node_type
mutationSince v1.0Add a new node type (entity type) to the metamodel. Do this before creating nodes of that type. You can define custom properties with data types. For simulation, a property can be marked computed (its default_value is then a Rhai formula evaluated each timestep), and the node type can carry an act_script — a Rhai script run per agent per timestep that drives behaviour.
Example Request
{"name": "Risk", "color": "#ff4444", "description": "A project risk", "properties": [{"name": "severity", "data_type": "String"}, {"name": "probability", "data_type": "Number"}]}Example Response
{"success": true, "operation_count": 1, "versions": [57]}