add_widgets
mutationSince v1.0Place widgets on a simulation dashboard in one call: charts, sliders, checkboxes, options, parameter-set choosers, time-range choosers, time sliders (Forecast from), text, value tiles, round controls, and agent or link placements. Each item gives its kind and position, and any field left out takes the toolbox default. Every reference is checked (the agent is in the scenario, the property exists and has the right type, the parameter set belongs to the twin), and one bad reference refuses the whole call. Read the result back with get_simulation_diagram_contents.
Example Request
{"diagram_id": "diag-uuid", "items": [{"kind": "value", "x": 40, "y": 40, "label": "Backorder", "agent_instance_id": "retailer-uuid", "property_id": "backorder", "thresholds": [{"operator": ">", "value": 0, "color": "#dc2626"}]}]}This content was written collaboratively with AI.