--- name: media-production description: Generate and edit images, vector artwork, photos, audio and video; inspect results and deliver finished artifacts. --- # Media Production 1. Establish the desired output, duration, aspect ratio and supplied reference material. A single image or speech request usually needs only its generation tool. 2. For hosted image generation, use `media_production.image.generate` with the desired prompt and output options; Core resolves tool settings, inheriting the active conversation provider by default. If `selection_required` is returned, ask the owner which available provider to use; never silently switch accounts. Use `configure` only when they request a saved preference. Inspect `capabilities.defaults` when setup needs diagnosis. Reserve `generateWithModel` for an explicitly owner-requested provider/model; never pick an older model from memory or bypass a default after an error. 3. Generate image assets with `media_production.image`. Use existing `music_audio` speech tools for narration and owner-supplied audio or video clips for other media assets. 4. For screen tutorials, ground the controls, destination choices and visible completion checks before recording. Keep predictable actions and checks together, deriving later targets from fresh observations. For reactive search, verify the entered value and wait for its refresh signal. Verify navigation against an observed destination and relevant rendered content. Use the appropriate recording source: - For a demo entirely in one web tab, use `browser_use.browser-use.record` with its observed tab ID and one bounded script. It captures the tab directly through the existing browser connection. Use `leon_click` or `click_at_xy` to retain delivered clicks. Import the resulting `videoPath` with `media_production.openscreen.createProject`. - For a native app, browser chrome or desktop workflow, record with `media_production.openscreen`. On Wayland, tell the owner which source to select. For a linked browser-window take, preview the full window and demonstrated controls when `stop` requests verification, then confirm the source with a second `stop` call before importing browser input. Review optimization status and any source-time cuts. Run `optimizeRecording` when optimization is pending, and preserve requested introductions and reading time. - If capture fails or clips the demonstrated content, explain the issue and any fallback before delivery. Review actual cursor placement, zoom regions, and any cut boundaries. Always use `exportRecording` to render the wallpaper, cursor and zooms. Prefer source-resolution export for clear UI text. If FilmCraft is needed, import the composed export and preserve its resolution. Verify motion and appearance in the exact final video. 5. For local production, use `media_production.photocraft` for layered raster edits, `vectorcraft` for vector artwork, `hyperframes` for motion graphics and animated compositions, `filmcraft` for timelines, and `lightcraft` for photo development. These tools run headlessly; PhotoCraft desktop control is optional. Discover commands and parameter schemas, inspect the source, and try the supported editing operation before replacing it with a custom shell pipeline. Use shell for unsupported work, not as a substitute for an untried editing tool. Validate one representative asset before applying a shared treatment to the whole set. Use returned object/media IDs, preserve originals and keep referenced media at absolute paths. Select persistent LightCraft libraries only when the owner requests library work. 6. For motion graphics, choose composition, visual style, pacing and animation techniques from the request and reference material. Combine text, shapes, SVG, images and other suitable assets as needed, keeping content readable at the intended viewing size. Use `hyperframes.create` for a new project and the file tool to author HTML, CSS and scene timelines. Reuse catalog components when they fit, or author custom motion. Adapt the scaffold's example styling, scene count and duration to the work. Preserve supplied source by working in a copy. Tool guidance owns the composition and animation contract. 7. Batch independent grounding reads and author related files together. Use `hyperframes.inspect` to ground scene timing, then `hyperframes.check` with `options.mode=lint` to catch source errors cheaply. During repairs use `mode=targeted` with affected `times` and preview neighboring frames; verify text fit, safe margins and continuity. On the final source run the default full check and require `scope=full`, `complete=true` and `checks.ok=true`. Targeted/lint success is partial evidence. Independent checks and previews may run together once source is stable; never edit files while they are being inspected. Reuse current-run evidence and successful checks while relevant source/assets are unchanged. Render delivery quality once and review that exact video for motion, pacing and audio; use a separate draft only when useful for unresolved motion. Rerender only after changes or an observed defect. Passing checks or looking at a still frame alone cannot establish that a video is ready to share. 8. Preview representative composition positions in a batch and compare them with the brief. Use existing FFmpeg and FFprobe tools for conversion and artifact validation; batch independent conversion, metadata and decode checks. Review the exact delivery video in one playback surface, respecting any owner-selected application. Observe advancing time or frames rather than a narrow timestamp window. Record evidence for motion, pacing, audio and other requested properties, then stop inspecting once each is verified. After an edit, repeat only checks whose source or assets changed; contradictory evidence requires reassessment. Wait for background renders to complete before delivery. 9. A disconnected browser or failed window capture does not establish a media defect. Reconnect once or use one independent supported playback method. Avoid opening additional players, traversing unrelated windows or restarting servers to reconfirm evidence already obtained. Rerender or repeat source checks only for an observed artifact defect or changed source/assets. If playback review remains unavailable, deliver the available outputs and identify the exact unverified property without claiming complete verification. 10. Generated and edited artifacts are attached automatically. Attach other composed/local files through `file_system.file.attach` so the owner receives a player or download. Do not expose provider URLs, credentials or base64 in chat.