Dry-run validation

Check a workflow for mistakes before you run it. What a dry-run checks, what it cannot prove, and how to fix its messages.

On this page

A dry-run checks that your workflow is well-formed. It does not call any tool or model, and it does not run your steps. It is the quickest way to catch typos, missing connections, and broken {{…}} templates.

Who this is for: anyone building a workflow in Workflow Studio.

What you will do: run a dry-run, read its messages, and fix them.

Run a dry-run

  1. Open the workflow

    Open your workflow in Workflow Studio. If it needs start input, click Setup and fill in the values on the Manual tab. A dry-run checks {{input.*}} templates against these values.

  2. Click Dry-run

    Click Dry-run in the toolbar. The run panel opens on the Dry Run tab.

    You should see a pass or fail result (for example Dry-run failed with 1 error), the Checks performed, the Run order, and Issues by step. Each issue shows the step's id, a code such as template_unknown_step, and a message. Copy report and JSON at the top right copy or show the full report.

    The Dry Run tab showing Dry-run failed with 1 error, the checks performed, the run order, and one issue, template_unknown_step: template references unknown step writer
    A failed dry-run: the Review the reply step refers to a step called writer that does not exist
  3. Fix and repeat

    Fix the issues, then click Dry-run again.

Note

A dry-run is advice. Saving, running, and publishing are still allowed when it reports problems. The Dry Run tab shows the latest check of the current canvas. It is not a replay of the run you have selected, so a past run can show Success while the Dry Run tab shows errors from a later edit.

Compile versus run

Dry-runRun
PurposeCheck the workflowDo the work
Calls tools and modelsNoYes
Produces step outputsNoYes

What a dry-run checks

  • The graph and each step's required fields
  • Fields that do not exist on a step (typos)
  • depends_on links that point nowhere, and loops in the dependencies
  • Template syntax, and that {{steps.<id>…}} points at a step this step depends on
  • That {{input.*}} values resolve from the start input you provided
  • That Lua scripts compile, and that they return a table
  • That each tool step has an MCP instance or server, and that its arguments fit the tool's input schema
  • Disabled steps (shown as a warning)

What a dry-run cannot prove

  • That a tool, database, or model call will succeed
  • That a Lua script handles every possible input
  • That a child workflow is valid. Dry-run each child workflow on its own.

Template variables in a dry-run

{{input.*}}

Checked against your start input. If a step uses {{input.email}} and you gave no email, the dry-run fails.

{{steps.<step-id>.…}}

The dry-run checks that the step exists and that this step depends on it (directly or further up). It does not need that step to have produced anything, because nothing has run yet. The same goes for loop variables such as {{foreach.item}} and {{while.prev…}}.

Fix common messages

MessageLikely causeWhat to do
template_unresolved mentioning steps['…']Bracket syntax inside {{…}}Use dot syntax with the step id: {{steps.<step-id>.result.field}}. See Template intellisense.
template_unresolved on {{input.x}}The start input has no xAdd it under Setup, or give a default: {{input.x | "default"}}, or {{input.x | omit}} to leave it out
template_unknown_stepA template names a step id that is not in the workflow, for example {{steps.writer.result.text}} when no step has the id writerUse the id of a step that exists (not its display name), and connect it with depends_on
template_missing_dependencyThe step you read is not in this step's depends_onDraw the connection, or add the id to depends_on
for_each_items_unresolved or for_each_items_invalidThe loop's list did not resolveProvide the missing input, or return the list from the step before it (return { items = items })
graph_schema_validationA step has a field that does not exist, or one of the wrong typeCheck the field name against Step types
lua_fixture_return_typeA Lua script did not return a tableEnd the script with return { ... }
mcp_tool_input_schema_unavailableThe tool's input schema could not be loadedCheck the tool's connection, then dry-run again
mcp_tool_arg_deferred (warning)A tool argument still holds a {{…}}Fine: it is checked when the step runs
workflow_call_child_targetA workflow step has a child_target that is not empty, "published", or a version numberFix the value

Check from the API

POST /v1/workflows/{workflow_id}/validate

Send the graph in graph and your start input in params.trigger_payload. The response has valid, readiness (ready or blocked), blockers, checks_performed, and issues with step ids and codes. blocked is advice: it tells you something could not be checked, for example a tool without a loadable input schema.

Common problems

ProblemWhat to try
Everything fails on {{input.*}}You have not filled in Setup yet. Add start input and dry-run again.
The dry-run is green but the run failsDry-run does not call tools. Read the failed step's error in Events.

Next steps

Edit this pageagentruntime-io/agentruntime-docs