apply_workflow_changes
Apply related Flow changes atomically. Add and configure nodes, connect exact sockets (use @key for new nodes), and optionally lay out a new Flow in one call. Read existing graphs before editing. The tool saves the Flow without executing it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"workflowId": "<workflowId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "apply_workflow_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connect | No | Connections in upstream-to-downstream order, using exact socket IDs. | |
| addNodes | No | ||
| autoLayout | No | Arrange the graph after changes. Use for a new graph or when the user requests layout. | |
| workflowId | Yes | ||
| updateNodes | No | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes | Unique key for this batch. Reuse it if retrying the same changes. |