Skip to content

rereel inspect

Reads rereel.json, the lockfile, props.json, and mix_plan.json and prints a small summary, so an agent can orient itself without loading large JSON files into context.

Terminal window
rereel inspect <reel_dir> [--scene <id>]
  1. Reads <reel_dir>/rereel.json (required, exit 2 if missing). Lockfile, props, and mix plan are optional and treated as empty when absent.
  2. Scenes come from props.scenes (array) or props.scenes.scenes (object wrapper). For each scene:
    • id: scene.id, else scene_<n> (1-based)
    • startSec / endSec / durationSec: start_sec / end_sec / duration_sec if numeric
    • text: first 80 characters of narration, else of text
  3. --scene <id> keeps only the scene whose (possibly generated) id matches exactly.
  4. Cuts are counted from props.cuts or props.edit.cuts.
  5. Narration, BGM, and SFX counts come from mix_plan.json.
Flag Type Default Description
<reel_dir> path (positional) — (required) Bundle directory.
--scene string — Filter scenes to one ID. Counts are not filtered.
{
"reelDir": "/abs/path/examples/minimal-short",
"kind": "remotion_single",
"video": { "width": 1080, "height": 1920, "aspect": "9:16", "fps": 30, "chunkFrames": 150 },
"audioMode": "mix_plan",
"lockedAssets": 0,
"scenes": [
{ "id": "scene_1", "startSec": 3, "endSec": 7, "text": "Edit 1 line in props.json.\nRebuild only 1 chunk." }
],
"cutsCount": 0,
"narrationSegments": 0,
"bgmCues": 0,
"sfxCues": 0
}

video is the video object from rereel.json, copied as-is. Scene keys whose value is undefined are omitted from the JSON.

Code When
0 Success.
2 Missing <reel_dir> argument, missing rereel.json, or invalid JSON in any file read.
Terminal window
rereel inspect ./reels/ep01
rereel inspect ./reels/ep01 --scene s03 | jq '.scenes[0]'