create_flow
Add a new flow to Node-RED by posting flow JSON with an optional or auto-generated ID. Use it to define nodes and configs for a new workflow.
Instructions
Create a new flow using POST /flow. Adds a new flow to Node-RED. Flow ID can be provided or will be auto-generated.
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": {
"flow": "<flow>"
},
"name": "create_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | JSON string containing flow data with format: {id, label, nodes: [], configs: []} |