Validate a script
tourwright_validateValidate a tour script's structure offline—fields, actions, and variables—before running it. Returns OK or a list of errors to fix; check live-site targets separately.
Instructions
Check the structure of a script (fields, actions, variables) without opening any website: fast, offline. Returns { ok } or the list of errors to fix. To know whether its targets still exist on the live site, use tourwright_check.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "tourwright_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | Values for the script variables ({{name}}): the same script makes a different video per set of values | |
| script | Yes | The script: an object, or YAML/JSON text. Read tourwright_guide first for the format. |