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.
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 |