Skip to main content
Glama

Create AI Mirror

create_ai_mirror

Set up a live AI mirror with camera or synthetic video, StreamDiffusion img2img, Syphon/NDI output, and a prompt/strength/CFG control panel. Handles camera permissions with synthetic fallback.

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

TableJSON Schema
NameRequiredDescriptionDefault
cfgNoClassifier-free guidance scale; SD sweet spot 1–2.
nameNoContainer name.ai_mirror
seedNo-1 = random per frame.
stepsNoStreamDiffusion 1–4 step LCM.
promptNoInitial StreamDiffusion prompt.ethereal water
sourceNoInput source: USB camera (hype default), self-animated synthetic TOP, or an existing TOP routed through a Select.camera
strengthNoimg2img mix; surfaced in the panel.
output_modeNoOutput: syphon_spout (macOS/Windows showcase form), ndi (cross-host), or internal (no sender).syphon_spout
parent_pathNoParent COMP./project1
negative_promptNoInitial StreamDiffusion negative prompt.blurry, low quality, deformed
camera_device_idxNoUSB camera device index when source='camera'.
existing_top_pathNoRequired when source='existing_top'.
output_sender_nameNoSender / NDI name.ai_mirror
show_camera_previewNoAdd a small selectTOP preview of the camera inside the panel.
expose_control_panelNoBuild the prompt+sliders panel and wire .expr expressions to SD pars.
fallback_to_syntheticNoIf camera creation fails, build a synthetic noise source instead of aborting.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With annotations only saying non-read-only, non-destructive, and open-world, the description adds substantial behavioral detail: camera permission dialog on macOS, fallback_to_synthetic behavior, and the warning-not-error handling of missing pars. It also explains the delegation to drive_streamdiffusion and how the panel binds pars via .expr expressions, which is far beyond what annotations reveal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a dense single paragraph with every sentence carrying useful operational detail. The first sentence is long and packed, but it front-loads the purpose and pipeline, so it remains effective without being wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 16 parameters and no output schema, the description covers the full pipeline, output modes, delegation, parameter binding behavior, error handling, OS permission side effects, and fallback semantics. This is more than enough context for an agent to decide and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, giving a baseline of 3. The description adds integration-level semantics by explaining how cfg, strength, and prompt feed the control panel and drive StreamDiffusion pars, and how fallback_to_synthetic keeps the rig alive. It does not restate every parameter but meaningfully enriches the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it wires a complete AI-mirror installation in one MCP call, detailing the exact pipeline: camera/synthetic/existing TOP -> StreamDiffusion -> output -> control panel. It distinguishes itself from sibling tools like drive_streamdiffusion by framing itself as the 'Layer 1 COMBO' that delegates to that tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides strong context for when to use the tool ('canonical 2026 AI-mirror installation in one MCP call') and references drive_streamdiffusion as the delegated sub-tool. However, it does not explicitly state when NOT to use this tool or name alternative tools for simpler/composable setups, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lucasmaher-hash/touch-designer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server