Add a source to a scene
add_sourceAdd a source to any scene and make it live instantly. Supports cameras, displays, and windows via device_id; returns the new source_id.
Instructions
Add a source to a scene (defaults to the active scene); it appears live immediately if the scene is active. For cameras/displays/windows, pass the device_id and source_type from list_devices verbatim. The new source lands centered by default; use set_source_transform to position/size it, set_source_shape to mask it, etc. Returns the new source_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label for the source. | |
| scene_id | No | Target scene (default: active scene). | |
| device_id | No | From list_devices; required for camera/display/window sources. | |
| source_type | Yes | From list_devices (e.g. "Camera", "Display Capture", "Window Capture"). | |
| audio_form_factor | No | Only for audio-input devices. |