import_workflow
Import an n8n workflow from a JSON string definition, restoring nodes, connections, settings, and name. Optionally activate the workflow after import.
Instructions
Import a workflow directly from a JSON string definition.
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": {
"workflowJson": "<workflowJson>"
},
"name": "import_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Whether to activate the imported workflow | |
| workflowJson | Yes | JSON string representing the full workflow (nodes, connections, settings, name) |