clone_flow
Uses an existing conversation flow as a starting point to create a new adapted flow. Can clone across or within agents, apply find/replace text adaptations, add/update/remove steps, and optionally clone referenced templates so the original flow and its templates remain completely untouched.
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": {
"sourceFlowIdentifier": "<sourceFlowIdentifier>",
"newName": "<newName>"
},
"name": "clone_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | No | Target agent ID/name where the new flow will be created (defaults to active agent). | |
| newName | Yes | Name for the newly created flow. | |
| folderId | No | Optional target flow folder ID. | |
| autoLayout | No | Optional true to re-layout all nodes cleanly. | |
| folderName | No | Optional target flow folder name (created automatically if it does not exist; cloned templates are also organized into a matching template folder unless templateFolderName is specified). | |
| upsertEdges | No | Optional edges to add or rewire on top of the cloned flow. | |
| upsertNodes | No | Optional nodes to add or override on top of the cloned flow. | |
| removeEdgeIds | No | ||
| removeNodeIds | No | Optional node IDs from the source flow to remove in the new flow. | |
| sourceAgentId | No | Optional agent ID/name where the source flow lives (defaults to active agent). | |
| newDescription | No | Optional description for the new flow. | |
| removeEdgesFrom | No | ||
| templateFolderId | No | Optional target template folder ID for cloned templates. | |
| textReplacements | No | Optional find/replace rules to adapt copy across both flow nodes and cloned templates. | |
| mediaReplacements | No | Optional media URL replacements to swap images/videos across cloned templates and sendMedia nodes (by nodeId, cardIndex, or findUrl). | |
| templateFolderName | No | Optional target template folder name for cloned templates (created automatically if needed; defaults to folderName when folderName is set). | |
| sourceFlowIdentifier | Yes | Name or ID of the existing source flow to copy/adapt. | |
| cloneReferencedTemplates | No | When true (or automatically when textReplacements is provided or cloning across agents), creates independent copies of referenced templates for the new flow so the source flow templates are untouched. |