Process the local storyboard queue. The MCP tools start the bundled local app automatically when needed and default to http://127.0.0.1:43218.
-
Call list_storyboard_generation_tasks with status pending.
-
Inspect the generators used by the pending tasks and verify the matching local capabilities before claiming anything:
image-gen requires the built-in imagegen skill and image generation tool.
hyperframes requires the HyperFrames and HyperFrames CLI skills.
remotion requires the Remotion skill and its local rendering toolchain.
If a required capability is unavailable, do not claim affected tasks. Report the exact missing capability and continue with tasks whose generators are available.
-
Probe the local environment with read-only checks before deciding to install anything:
- Check Node.js, npm, and pnpm availability and versions.
- Check whether the task
outputDir, active workspace, or chosen render directory already has package.json, a lockfile, and node_modules.
- Check for local CLIs with existing project commands such as
pnpm exec ..., npm run ..., or executable files under node_modules/.bin.
- Check for global CLIs only with non-installing commands such as
command -v, where, or direct --version after the command is found.
- Check whether Chromium, FFmpeg, or tool-specific render caches already exist when the selected renderer needs them.
Do not use commands that can implicitly download packages as probes. Do not run npx remotion, pnpm dlx, or package-manager exec forms that will install missing packages merely to test availability.
-
Prefer existing render environments. Use local project dependencies first, then compatible global CLIs. Install only when a required tool is missing, incompatible, or no local dependency set exists. Any install must be explicit and must go into the task outputDir or a dedicated renderer cache, not into the user's unrelated project.
-
Process available tasks one at a time.
-
Before generating, call claim_storyboard_generation_task.
-
If the claimed task has hasDesign: true, read the complete Markdown file at the exact absolute designPath before generating anything. Apply it as the project-wide visual system:
visualPrompt defines the concrete shot subject and requested content.
DESIGN.md defines shared visual style, color, typography, composition, texture, and motion language.
- An explicit shot requirement takes precedence if it conflicts with the general visual system.
-
Route by generator:
image-gen: use the built-in imagegen skill and built-in image generation tool. Treat visualPrompt as the primary prompt and honor the task's aspectRatio. If the task includes referenceImagePath, use that local image as the visual reference/input for the generation or edit. Copy the final verified image into the active workspace before completing the task.
hyperframes: use the HyperFrames and HyperFrames CLI skills. Create a self-contained composition using the task's width, height, duration, and visualPrompt, then lint, inspect, render to MP4, and verify the output.
remotion: use the Remotion skill. Create or reuse a Remotion composition using the task's width and height, render an MP4 matching the task duration, and verify the output.
-
Technically verify each generated video before completion: the file exists, is readable, has the requested width and height, has a duration close to the task duration, and has a valid video stream/codec. Then visually inspect representative frames to ensure the render is not blank, black, or the wrong composition.
-
Call complete_storyboard_generation_task with the exact absolute output path and correct media type.
-
If generation or verification fails, call fail_storyboard_generation_task with the concise cause.
-
Continue until no processable pending tasks remain.