n8n_export_workflow
Export an n8n workflow as JSON by providing its ID. Returns the full workflow definition for backup or import into another n8n instance.
Instructions
Export a workflow from an n8n server as JSON. Returns the complete workflow definition that can be imported into another n8n 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": {
"workflow_id": "<workflow_id>"
},
"name": "n8n_export_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_name | No | Server name. Uses default if omitted. | |
| workflow_id | Yes | n8n workflow ID to export |