create-workflow
Create a new n8n workflow by providing a client ID and name, with optional nodes and connections to define automation steps.
Instructions
Create a new workflow in n8n. Must provide full workflow structure including nodes and connections arrays, even if empty. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.
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": {
"clientId": "<clientId>",
"name": "<name>"
},
"name": "create-workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| nodes | No | Workflow nodes (optional) | |
| clientId | Yes | Client ID from init-n8n | |
| connections | No | Node connections (optional) |