update_nodes_style
Update specific node styles in a mindmap while preserving existing data. Apply targeted changes to node indices or all nodes with fields like color, size, and line type.
Instructions
Update style fields on specific nodes without losing existing data.
This is the SAFE way to modify node style — it reads the full mindmap, applies targeted changes, and syncs everything back. Never use sync_nodes with a partial node list (it deletes everything not sent).
style_updates is a JSON string: { "node_indices": [1, 2, 3], // order_index of nodes to update (empty = all) "size_box": 0, // optional: 0=normal(180×60), 1=category(180×120), 2=root(180×180), 3-11=larger paliers "line_type": 1, // optional: 0=curve, 1=rounded, 2=square "line_style": 0, // optional: 0=solid, 1=dashed "spacing_h": 2, // optional: horizontal spacing multiplier (0-10) "spacing_v": 0, // optional: vertical spacing multiplier (0-10) "color": "0xFF7A8FF5", // optional: hex color "bold": true, // optional "italic": false, // optional "underline": false, // optional "stroke_width": 2.5, // optional "dot_radius": 6, // optional "radius": 5, // optional "border_size": 2, // optional "label_size": 12, // optional "icon_id": 0, // optional "active_bg_colors": false, // optional "is_write_children": true, // optional: propagate style to children }
Only provided fields are updated — others remain untouched. If node_indices is empty, the update applies to ALL nodes.
Args: id_mindmap: Mindmap ID style_updates: JSON string with node_indices + fields to update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_mindmap | Yes | ||
| style_updates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |