Build a replay workflow for one node
execution.replayIsolates a specific node for debugging by building a replay workflow with pinned input items, eliminating the need to re-run the entire pipeline.
Instructions
Build a self-contained replay workflow that exercises a single node from a larger workflow. The replay workflow is Manual Trigger -> Replay Seed (Code node with pinned items) -> target node. Optional inputItems or an execution payload pins what the target sees. Useful for iterating on one stubborn node without re-running the whole pipeline. Returns workflow JSON ready to import or push via workflow.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Name of the node to replay. | |
| workflow | Yes | Original workflow JSON. | |
| execution | No | Optional execution payload — pulls real input the target saw last time. | |
| inputItems | No | Optional explicit input items (each becomes `{ json: ... }`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | Full n8n workflow JSON (name, nodes, connections, settings, ...). | |
| item_count | Yes | Number of input items the replay seed will feed the target. | |
| target_node | Yes | Name of the node being replayed. |