set_workspace_groups
Create, update, or remove labeled group boxes on the ComfyUI canvas to organize nodes visually. Fit a group around selected nodes or refit after moving them.
Instructions
Create, edit and delete the group boxes on the canvas open in the browser.
A group is a labelled rectangle drawn behind the nodes that fall inside it. It holds no membership of its own - which nodes are "in" it is decided by where the box is - so creating one around a list of nodes means fitting the box to them, and that is what this does.
Deleting a group takes only the box: the nodes it framed stay exactly where they are. Get the current groups, with their ids and members, from get_workspace_graph.
Args:
create: [{"title": ..., "nodes": ["3", "8"]}] - a box fitted around
those nodes. "color" takes a palette name ("green", "blue",
"pale_blue", ...) or #rrggbb; "padding" is the gap to the nodes,
10 by default. A group with no nodes needs an explicit
"bounding": [x, y, width, height] instead.
update: [{"group": <id or title>, ...}] with any of "title", "color",
"nodes" (refit around these) or "fit": true (refit around whatever
it currently holds, after the nodes inside it have moved).
remove: groups to delete, by id or title.
scope: "root" for the whole workflow, "active" for the subgraph on screen.
client_id: which tab to edit; defaults to the most recently focused one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | root | |
| create | No | ||
| remove | No | ||
| update | No | ||
| client_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||