Create a draft automation workflow
create_workflow_draftValidates an automation workflow graph (nodes, edges) and saves it as an unpublished draft. It never publishes, enables or runs it. Returns the workflow id, validation and sku_url.
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": {
"name": "<name>",
"nodes": "<nodes>",
"edges": "<edges>"
},
"name": "create_workflow_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| edges | Yes | Edges: [{id, source, target, sourceHandle?}]. | |
| nodes | Yes | Nodes: [{id, type (from the node catalog), position {x, y}, data}]. | |
| dry_run | No | Validate only; saves nothing. | |
| category | No | Free-text grouping, e.g. orders. | |
| description | No | ||
| preview_mode | No | true makes runs skip every state-changing step once published. | |
| idempotency_key | No | A repeat with this key replays the first result. |