workflow_copy
ManagementCopy Workflow
Copy a workflow — retrieves the source and creates a new workflow carrying its description, flow, input definitions, and editor state in one call.
Args:
- source_workflow_id: required
- name: optional — defaults to "Copy of <source name>"
- team_id, project_id: required for OAuth callers
Returns: the new workflow record (and _publishHint when the copy is a draft that needs workflow_publish before it can run).
Note: the source flow is copied verbatim — model ids baked into it are inherited as-is, so a flow built against another environment's models may need re-publishing from editor state.
Example: "Duplicate this workflow" -> source_workflow_id="workflow_xxx"
Don't use when: you want to round-trip workflow_get into workflow_create manually — this tool does it in a single tool call.
open-world
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| source_workflow_id | string | ✓ | Workflow to copy. |
| name | string | — | Name for the copy. Defaults to "Copy of <source name>". |
| team_id | string | — | Team ID. Required if user belongs to multiple teams. |
| project_id | string | — | Project ID to scope the operation to. |
| response_format | enum(json | markdown) | json | Output format: 'json' for structured data, 'markdown' for human-readable text. |