copy_steps
Copy a contiguous range of steps from one flow to another, preserving nested containers. Use for reordering or reusing step blocks with a single undo entry.
Instructions
Copies a contiguous run of steps [from, to] (inclusive, 0-based indices within sourceParentPath's own array) from one flow into another flow -- or the same flow, for a reorder-via-copy. Deep-cloned (nested Conditional/Repeat/Iterate bodies come along intact). One undo entry, on the target flow only -- the source is never modified. Splitting a flow into two, or reusing a chunk of steps another flow already has, is one call instead of reading every step and re-adding each one by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Index to insert at in the target array -- default appends to the end | |
| to | Yes | Last step index to copy (0-based, inclusive) -- same as `from` to copy a single step | |
| from | Yes | First step index to copy (0-based, inclusive) | |
| project | No | Path to the project root (same folder the side panel connects to). Defaults to the EASYSPEC_PROJECT environment variable if omitted. | |
| sourceFlowId | Yes | ||
| targetFlowId | Yes | May be the same as sourceFlowId | |
| sourceParentPath | No | Step path into a Conditional/Repeat/Iterate body to copy from, instead of the flow's top level | |
| targetParentPath | No | Step path into a Conditional/Repeat/Iterate body to copy into, instead of the flow's top level |