fix_vast
Auto-fix VAST XML errors with deterministic safe fixes, including HTTPS upgrades and SIMID corrections. Returns repaired XML, applied fixes, and remaining issues for manual review.
Instructions
Auto-fix a VAST XML tag. Applies all deterministic, safe fixes: HTTP → HTTPS upgrades (including SIMID HTTP://), SIMID apiFramework casing, true-intent variableDuration, missing SIMID type="text/html", and removal of deprecated attributes. Does not rewrite javascript: URLs or an existing type MIME. Returns the repaired XML, a list of every fix applied (rule ID + description + path), and any remaining issues that require manual intervention. Always re-validate the returned xml with validate_vast to confirm no errors remain.
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": {
"xml": "<xml>"
},
"name": "fix_vast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw VAST XML string to auto-fix. | |
| wrapper_depth | No | Current wrapper chain depth (0 = root document). Default: 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | ||
| applied | Yes | ||
| remaining | Yes | ||
| applied_count | Yes | ||
| remaining_count | Yes |