n8n_create_workflow
Create an n8n workflow with pre-flight validation and automatic fixes for settings, node ports, webhook IDs, and code versions before activation.
Instructions
Create a new n8n workflow with pre-flight validation and auto-fix. Automatically fixes: Code v2→v1, missing settings, webhookId, SplitInBatches ports, MongoDB alwaysOutputData, ExecuteWorkflow workflowId format, node name spaces. After creation use n8n_activate_workflow to enable.
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>",
"connections": "<connections>"
},
"name": "n8n_create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| nodes | Yes | Array of n8n node definitions | |
| settings | No | Workflow settings. Auto-added if omitted. | |
| connections | Yes | Connection map: {NodeName: {main: [[{node, type, index}]]}} |