n8n_import_workflows
Import workflow JSON files from a local directory to create new workflows in the instance, with optional activation for workflows that were active in the backup.
Instructions
Import workflow JSON files from a local directory (e.g. a backup created with n8n_export_all_workflows) as new workflows in the instance.
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": {
"directory": "<directory>"
},
"name": "n8n_import_workflows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Activate workflows that were active in the backup (default false) | |
| directory | Yes | Directory containing .json workflow files |