workflow_copy

Management

Copy 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

NameTypeRequiredDescription
source_workflow_idstringWorkflow to copy.
namestringName for the copy. Defaults to "Copy of <source name>".
team_idstringTeam ID. Required if user belongs to multiple teams.
project_idstringProject ID to scope the operation to.
response_formatenum(json | markdown)jsonOutput format: 'json' for structured data, 'markdown' for human-readable text.