Create AI Mirror
create_ai_mirrorSets up an AI mirror with camera or synthetic input, live StreamDiffusion processing, and configurable output (Syphon/Spout/NDI/internal). Includes a control panel for prompt, strength, and CFG.
Instructions
Layer 1 COMBO: wires the canonical 2026 AI-mirror installation in one MCP call — camera (or synthetic / existing TOP) → StreamDiffusion (img2img live, delegated to drive_streamdiffusion) → Syphon/Spout/NDI/internal output → a prompt+strength+cfg control panel whose sliders and textDATs drive SD pars via .expr expressions. Panel only binds pars present in drive_streamdiffusion's validated_pars; missing pars are warned, not errored. Camera source on macOS triggers the OS permission dialog on first cook; fallback_to_synthetic keeps the rig alive when the camera is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | No | Parent COMP. | /project1 |
| name | No | Container name. | ai_mirror |
| source | No | Input source: USB camera (hype default), self-animated synthetic TOP, or an existing TOP routed through a Select. | camera |
| existing_top_path | No | Required when source='existing_top'. | |
| camera_device_idx | No | USB camera device index when source='camera'. | |
| fallback_to_synthetic | No | If camera creation fails, build a synthetic noise source instead of aborting. | |
| prompt | No | Initial StreamDiffusion prompt. | ethereal water |
| negative_prompt | No | Initial StreamDiffusion negative prompt. | blurry, low quality, deformed |
| strength | No | img2img mix; surfaced in the panel. | |
| cfg | No | Classifier-free guidance scale; SD sweet spot 1–2. | |
| steps | No | StreamDiffusion 1–4 step LCM. | |
| seed | No | -1 = random per frame. | |
| output_mode | No | Output: syphon_spout (macOS/Windows showcase form), ndi (cross-host), or internal (no sender). | syphon_spout |
| output_sender_name | No | Sender / NDI name. | ai_mirror |
| expose_control_panel | No | Build the prompt+sliders panel and wire .expr expressions to SD pars. | |
| show_camera_preview | No | Add a small selectTOP preview of the camera inside the panel. |