Validate the workflow script
Available now Validation uses static checks, a mock dry run, and backend configuration probes.
The MCP workflow tool does not validate a workflow script. Before a live run, use the CLI validator.
Run the validator
Section titled “Run the validator”Open a shell in the directory that contains first-inspection.workflow.js. Run this command:
first-inspection.workflow.js · validation command
npx -y @automatalabs/workflows validate first-inspection.workflow.js \ --args '{"request":"Find the source that defines the CLI commands."}'The validator does not send a prompt to a model. The mock backend fabricates a schema-valid result.
The validator completes these checks:
- It parses the
metaliteral and the JavaScript syntax. - It finds direct nondeterministic call expressions.
- It runs the workflow with a mock agent backend.
- It probes each routed ACP backend without a prompt.
- It checks the authored model, mode, and
configOptionsvalues.
Read the result
Section titled “Read the result”A valid report has no static error or dry-run error. The command exits with code 0 when validation succeeds.
A backend probe error produces a warning. The warning is not a validation error.
If the probe for a backend reports an authentication error, authenticate that backend. Then run the validator again.
Read the command options
Section titled “Read the command options”Run this command for a different validator option:
Validator options · shell command
npx -y @automatalabs/workflows validate --helpIf you intentionally skip the mock dry run and backend probes, use --parse-only.