validate_automation
Validate Prisme.ai automations by checking schema compliance, expression syntax, unknown functions, naming conventions, and optional strict mode. Returns warnings and errors for actionable fixes.
Instructions
Validate Prisme.ai automation(s). Checks schema compliance, expression syntax ({{variables}} and {% code %}), unknown functions, naming conventions, and optionally strict mode. Accepts a file path, folder path (validates all .yml/.yaml/.json files), or automation object. Returns warnings (e.g., missing arguments declaration or naming convention issues) alongside errors even when the automation is valid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a YAML/JSON file or folder containing automations. Preferred over 'automation' when files exist on disk. | |
| strict | No | Enable strict mode: validates that instruction arguments match their specs. Default: false | |
| automation | No | The automation object to validate directly (use 'path' instead when possible). | |
| validateExpressions | No | Enable expression validation ({{}} and {% %}). Default: true |