Workflows: export
workflows_exportExport a workflow's definition as JSON—triggers, steps, parameters, and on_success/on_failure links—to back up or copy it. Check with the user first.
Instructions
Export an existing workflow to JSON (round-trippable with seed). Gives the workflow's definition as JSON with no ids: its triggers, and its steps with their parameters, linked by step key through on_success/on_failure. Use it to back up or copy a workflow; for the ids the step tools need, use workflows_get. It changes or deletes existing data, so check with the user before running it.
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": {
"id": "<id>"
},
"name": "workflows_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Workflow ID to export. Find it with workflows_list. | |
| output | No | Write to FILE instead of stdout |