Save a workflow to n8n
save_workflowDeploy a workflow to your n8n. Without workflow_id it creates a new
workflow. With workflow_id the edited version is deployed as a NEW
workflow named "... (updated)" and the original is kept so it can be
compared (for in-place edits use update_workflow_partial).
Args:
workflow_json: The complete workflow JSON.
workflow_id: Existing workflow to base an updated copy on (optional).
activate: Activate right away (needs the delete/activate permission).
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": {
"workflow_json": "<workflow_json>"
},
"name": "save_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | ||
| workflow_id | No | ||
| workflow_json | Yes |