run_media_qa
Validate a rendered MP4 with fail-closed Media QA: ffprobe format, video/audio checks, loudness, true peak, dead air, and black/frozen frames; returns ok plus details, hard failures set ok to false.
Instructions
Run the fail-closed Media QA Gate on a rendered MP4: ffprobe format, video and audio checks, loudness (LUFS) and true peak, dead air, black and frozen frames. Read-only. Returns {ok, hard_fails, checks, sha256, width, height, duration_sec, audio, video}; ok is false when any hard check fails. A missing ffprobe or ffmpeg makes the call return an error (isError), not ok:false. Run it after render_deck finishes (poll render_status until finished).
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": {
"mp4": "<mp4>"
},
"name": "run_media_qa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mp4 | Yes | Path to the rendered MP4 file (e.g. out/dup-protocol-cosmos.mp4) | |
| expect_loudnorm | No | Enforce broadcast loudness (-16 LUFS +/- 2.5) and True Peak ceiling when true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| audio | No | ||
| video | No | ||
| width | Yes | ||
| checks | Yes | ||
| height | Yes | ||
| sha256 | Yes | ||
| hard_fails | Yes | ||
| duration_sec | Yes |