Validate Action Script
validate_scriptValidates an Action Script for multi-step, conditional, polling, or saved/reviewed flows before sending it to the builder. Returns ok status, errors, step count, summary, and reference tools.
Instructions
Validate an Action Script before send_script_to_builder. Argument script: JSON object or JSON string. Response: ok, errors[] (path, code, message, expected?), stepCounts, humanSummary, referenceTools. ok=false is returned as isError. Contract: resource roku-dev-studio://action-script-contract.md. Only author a script for multi-step / conditional / polling / saved-or-reviewed flows — for a single action use the matching direct op (keypress, launch_app, rale_command, ecp_query, ecp_post, screenshot, …).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Required. The script root object: at minimum `{ "steps": [ ... ] }`, optionally `version`, `name`, `description`. Pass as a native JSON object, or as a single JSON **string** that parses to that object (not double-encoded). |