{ "type": "function", "function": { "name": "run", "description": "Run one media CLI command (ffmpeg, ffprobe, magick, sox, soxi, exiftool) in the job directory. Inputs are in in/ (read-only), write results to out/. Chain steps with &&. Set foreach to a glob to run the command once per matching file, with {in} = the file path and {stem} = its name without extension.", "parameters": { "type": "object", "properties": { "cmd": { "type": "string", "description": "The command line." }, "foreach": { "type": "string", "description": "Optional glob, e.g. in/*.mov" } }, "required": [ "cmd" ] } } }