Create Workspace Subgraph
create_workspace_subgraphCreate a subgraph in a Coalesce workspace to visually group nodes. Provide workspace ID, name, and array of node IDs; returns a subgraph UUID for future edits.
Instructions
Create a subgraph in a Coalesce workspace. Subgraphs group nodes visually. The assigned UUID is cached locally so future edits can reference the subgraph by name.
Args:
workspaceID (string, required): The workspace ID
name (string, required): Subgraph name
steps (string[], required): Array of node IDs to include
Returns: { subgraphID, subgraph, cached, message } — subgraphID is the UUID; cache it if you need to edit this subgraph later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the subgraph | |
| steps | Yes | Array of node IDs to include in the subgraph | |
| workspaceID | Yes | The workspace ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| message | No |