Add annotation
annotation_addAdd framed group comments around nodes or free text notes to document an IlluGen graph without changing rendered output, then return the index for later removal.
Instructions
Adds a comment to the node graph: a framed group around nodes, or a free text note.
Annotations only document the graph; they do not change the rendered result. Writes the project file in place.
Returns {"group": index} or {"note": index}, the index to pass to annotation_remove.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'group' = framed comment box drawn behind nodes; 'note' = free text label. | |
| path | Yes | Absolute path of the .illugen project file. | |
| size | No | [width, height]. Default 600 x 400 for a group, 460 x 60 for a note. | |
| text | Yes | Comment of the group, or text of the note. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| position | No | [x, y] top-left corner. Required unless around_nodes is given. | |
| color_idx | No | Groups: color index of the frame. 0 = default color. | |
| around_nodes | No | Groups: ids or labels of the nodes to frame; position and size are computed from them. |