move_node
Repositions a node in a flow relative to a target node, with a dry run option to validate before moving.
Instructions
Moves a node to a new position in a Cognigy.AI flow. MUTATING: This reorganizes the flow structure. Use dryRun=true (default) to validate first. Moving nodes affects execution order.
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": {
"flowId": "<flowId>",
"nodeId": "<nodeId>",
"targetNodeId": "<targetNodeId>",
"mode": "<mode>"
},
"name": "move_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | How to position relative to target: append (as next sibling), prepend (as previous sibling), insertChildAt (as child at position), insertAfter, insertBefore | |
| dryRun | No | If true (default), validates the operation without moving. Set to false to actually move the node. | |
| flowId | Yes | The flow ID containing the node | |
| nodeId | Yes | The ID of the node to move | |
| position | No | Position index when using insertChildAt mode | |
| targetNodeId | Yes | The ID of the target node to move relative to |