update_flow
Modifies an existing conversation flow. Supports targeted incremental patches (adding/updating/removing specific nodes or edges, renaming, moving folders, or find-and-replace text) as well as full graph replacement.
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": {
"flowIdentifier": "<flowIdentifier>"
},
"name": "update_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new name for the flow. | |
| edges | No | Full replacement edges array (use upsertEdges instead when making targeted edits). | |
| nodes | No | Full replacement nodes array (use upsertNodes instead when making targeted edits). | |
| agentId | No | Agent ID or display name. Defaults to the active agent in context. | |
| folderId | No | Optional folder ID to move this flow into. | |
| autoLayout | No | Re-run automatic visual layout across all nodes (defaults to true when new nodes are added without coordinates). | |
| folderName | No | Optional folder name to move this flow into (created automatically if needed). | |
| moveToRoot | No | Set to true to move the flow out of its folder back to root. | |
| description | No | Optional updated flow description. | |
| upsertEdges | No | Edges to add or rewire (if source + sourceHandle matches an existing edge, rewires it to the new target). | |
| upsertNodes | No | Nodes to add (new ID) or update/merge in-place (matching existing node ID). | |
| removeEdgeIds | No | Specific edge IDs to remove. | |
| removeNodeIds | No | IDs of nodes to remove (incident edges are automatically cleaned up). | |
| flowIdentifier | Yes | Name or ID of the existing flow to update. | |
| removeEdgesFrom | No | Disconnect edges matching source (and optional sourceHandle / target). | |
| textReplacements | No | Optional find/replace rules applied across flow node texts and labels. | |
| mediaReplacements | No | Optional media URL updates applied to sendMedia nodes or referenced templates. |