inspect_vast
Follows a VAST wrapper chain from a URL, fetching and validating each hop. Returns structured hop data and validation issues to debug ad delivery paths.
Instructions
Follow a VAST wrapper chain from a URL, fetching and validating every hop. Returns each hop as a structured object: AdSystem, AdTitle, Duration, impression count, tracking event count, media files (with MIME type, dimensions, bitrate, URL), companion count, and per-hop validation issues. The final InLine hop contains the actual creative. Use this to debug wrapper chains, verify creative assets, or analyse a full ad delivery path. max_depth defaults to 5 per IAB recommendation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the first VAST tag in the chain to inspect. | |
| max_depth | No | Maximum wrapper hops to follow before stopping. Default: 5 (IAB VAST 4.x recommendation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The original URL passed to inspect_vast. | |
| hops | Yes | ||
| resolved | Yes | True when the chain terminated at an InLine ad (fully resolved). | |
| hop_count | Yes | ||
| chain_valid | Yes | True when all hops have zero errors. | |
| total_errors | Yes | ||
| stopped_reason | Yes | Why the chain stopped: `"resolved"` | `"max_depth"` | `"fetch_error: <detail>"` | `"parse_error: <detail>"` | |
| total_warnings | Yes |