export_workflow_as_template
Convert any n8n workflow into a shareable JSON template by stripping instance-specific IDs and excluding credentials.
Instructions
Export workflow as JSON template (safe for sharing)
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": {
"workflowId": "<workflowId>"
},
"name": "export_workflow_as_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stripIds | No | Remove n8n instance-specific IDs (default: true) | |
| workflowId | Yes | Workflow ID to export | |
| includeCredentials | No | Include credential data (INSECURE - default: false) |