obs-mcp
v0.2.0MCP server for AI-driven OBS Studio control via obs-websocket v5 — scenes, sources, filters, audio mixer, streaming, recording, and studio mode.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_scene_collection_list
List all scene collections and the currently active one.
set_current_scene_collection
Switch to a scene collection by name. Blocks until the switch completes.
| Parameter | Type | Description |
|---|---|---|
name * | string |
create_scene_collection
Create a new scene collection and switch to it.
| Parameter | Type | Description |
|---|---|---|
name * | string |
get_profile_list
List all profiles and the currently active one.
set_current_profile
Switch to a profile by name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
create_profile
Create a new profile and switch to it.
| Parameter | Type | Description |
|---|---|---|
name * | string |
remove_profile
Remove a profile. If it's the active one, OBS switches away first.
| Parameter | Type | Description |
|---|---|---|
name * | string |
get_profile_parameter
Read a raw parameter from the current profile's .ini configuration. Args: category: Config category, e.g. "Output". name: Parameter name within that category.
| Parameter | Type | Description |
|---|---|---|
category * | string | |
name * | string |
set_profile_parameter
Write a raw parameter into the current profile's .ini configuration. Advanced/low-level — prefer a dedicated request when one exists. Args: category: Config category, e.g. "Output". name: Parameter name within that category. value: New value, or None to delete the parameter.
| Parameter | Type | Description |
|---|---|---|
category * | string | |
name * | string | |
value * |
get_video_settings
Current canvas/output resolution and FPS (as a fraction — divide fpsNumerator by fpsDenominator for the true FPS).
set_video_settings
Change canvas/output resolution and/or FPS. Width/height fields must be set in pairs (can't change baseWidth without baseHeight, etc). Range 1-4096 for all resolution fields.
| Parameter | Type | Description |
|---|---|---|
base_height | ||
base_width | ||
fps_denominator | ||
fps_numerator | ||
output_height | ||
output_width |
get_stream_service_settings
Current stream destination service type and settings (server/key etc).
set_stream_service_settings
Set the stream destination. For a plain custom RTMP target, use service_type="rtmp_custom" and settings={"server": "...", "key": "..."}. Args: service_type: e.g. "rtmp_custom" or "rtmp_common". settings: Service-specific settings object.
| Parameter | Type | Description |
|---|---|---|
service_type * | string | |
settings * | object |
get_record_directory
Current output directory for recordings.
set_record_directory
Set the output directory recordings are written to. Args: path: Absolute directory path.
| Parameter | Type | Description |
|---|---|---|
path * | string |
get_source_filter_kind_list
List every filter kind this OBS install supports (noise_suppress_filter, noise_gate_filter, compressor_filter, color_filter, chroma_key_filter, etc).
get_source_filter_list
List all filters on a source (input or scene), in chain order. Args: source_name: Name of the source.
| Parameter | Type | Description |
|---|---|---|
source_name * | string |
get_source_filter_default_settings
Default settings object for a filter kind.
| Parameter | Type | Description |
|---|---|---|
filter_kind * | string |
create_source_filter
Add a new filter to a source. Args: source_name: Name of the source to add the filter to. filter_name: Name for the new filter. filter_kind: Filter kind (see get_source_filter_kind_list). filter_settings: Optional initial settings.
| Parameter | Type | Description |
|---|---|---|
filter_kind * | string | |
filter_name * | string | |
source_name * | string | |
filter_settings |
remove_source_filter
Remove a filter from a source.
| Parameter | Type | Description |
|---|---|---|
filter_name * | string | |
source_name * | string |
set_source_filter_name
Rename a filter.
| Parameter | Type | Description |
|---|---|---|
filter_name * | string | |
new_filter_name * | string | |
source_name * | string |
get_source_filter
Get a filter's enabled state, chain index, kind, and settings.
| Parameter | Type | Description |
|---|---|---|
filter_name * | string | |
source_name * | string |
set_source_filter_index
Reorder a filter within a source's filter chain. Args: source_name: Name of the source. filter_name: Name of the filter to move. filter_index: New position, >= 0 (0 = first in chain).
| Parameter | Type | Description |
|---|---|---|
filter_index * | integer | |
filter_name * | string | |
source_name * | string |
set_source_filter_settings
Configure a filter's parameters. Args: source_name: Name of the source. filter_name: Name of the filter. filter_settings: Settings object. overlay: True = merge on top of current settings, False = reset to defaults first.
| Parameter | Type | Description |
|---|---|---|
filter_name * | string | |
filter_settings * | object | |
source_name * | string | |
overlay | boolean |
set_source_filter_enabled
Enable or disable a filter without removing it.
| Parameter | Type | Description |
|---|---|---|
filter_enabled * | boolean | |
filter_name * | string | |
source_name * | string |
get_version
OBS/obs-websocket version info, platform, and the full list of requests available on this connection (availableRequests).
get_stats
Live perf stats: CPU/memory usage, active FPS, render/output skipped frames, disk space. Use to check for dropped-frame problems mid-stream.
broadcast_custom_event
Broadcast a CustomEvent to all subscribed obs-websocket clients. Args: event_data: Arbitrary JSON payload delivered to receivers.
| Parameter | Type | Description |
|---|---|---|
event_data * | object |
call_vendor_request
Call a request registered by a third-party OBS plugin/script vendor. Args: vendor_name: Unique vendor name registered by the plugin. request_type: The vendor's request type to call. request_data: Optional payload for the vendor request.
| Parameter | Type | Description |
|---|---|---|
request_type * | string | |
vendor_name * | string | |
request_data |
get_hotkey_list
List all hotkey names in OBS. Best-effort — hotkey requests are less reliable than dedicated requests when one exists for the same action.
trigger_hotkey_by_name
Trigger a hotkey by its name (see get_hotkey_list). Args: hotkey_name: Name of the hotkey to trigger. context_name: Optional hotkey context name.
| Parameter | Type | Description |
|---|---|---|
hotkey_name * | string | |
context_name | string |
trigger_hotkey_by_key_sequence
Trigger a hotkey by simulating a key press + modifiers. Args: key_id: OBS key ID (see obs-studio's obs-hotkeys.h for the list). shift/control/alt/command: Modifier keys to hold.
| Parameter | Type | Description |
|---|---|---|
alt | boolean | |
command | boolean | |
control | boolean | |
key_id | string | |
shift | boolean |
get_persistent_data
Get a value from an OBS persistent-data "slot". Args: realm: "OBS_WEBSOCKET_DATA_REALM_GLOBAL" or "OBS_WEBSOCKET_DATA_REALM_PROFILE". slot_name: Name of the slot to read.
| Parameter | Type | Description |
|---|---|---|
realm * | string | |
slot_name * | string |
set_persistent_data
Set a value in an OBS persistent-data "slot" — useful for storing state the AI needs to remember across tool calls (e.g. giveaway winners). Args: realm: "OBS_WEBSOCKET_DATA_REALM_GLOBAL" or "OBS_WEBSOCKET_DATA_REALM_PROFILE". slot_name: Name of the slot to write. slot_value: Any JSON-serializable value.
| Parameter | Type | Description |
|---|---|---|
realm * | string | |
slot_name * | string | |
slot_value * | string |
get_input_list
List all inputs (sources like mic, capture card, browser source, etc). Args: input_kind: Optional — restrict to one kind (see get_input_kind_list).
| Parameter | Type | Description |
|---|---|---|
input_kind | string |
get_input_kind_list
List every input kind (source type) this OBS install can create.
| Parameter | Type | Description |
|---|---|---|
unversioned | boolean |
get_special_inputs
Names of the built-in special audio inputs: Desktop Audio 1/2, Mic/Aux 1-4. Use these names to control the default audio channels.
create_input
Create a new input and add it as a scene item to a scene. Args: input_name: Name for the new input. input_kind: Kind of input to create (see get_input_kind_list). scene_name: Scene to add it to. input_settings: Optional initial settings object. scene_item_enabled: Whether the new scene item starts visible.
| Parameter | Type | Description |
|---|---|---|
input_kind * | string | |
input_name * | string | |
input_settings | ||
scene_item_enabled | boolean | |
scene_name | string |
remove_input
Delete an input. Removes all its scene items too. Args: input_name: Name of the input to remove.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_name
Rename an input. Args: input_name: Current name. new_input_name: New name.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
new_input_name * | string |
get_input_default_settings
Default settings object for an input kind — overlay get_input_settings on top of this to reconstruct the full effective settings.
| Parameter | Type | Description |
|---|---|---|
input_kind * | string |
get_input_settings
Current (non-default) settings of an input, plus its kind. Args: input_name: Name of the input.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_settings
Set an input's settings. Args: input_name: Name of the input. input_settings: Settings object to apply. overlay: True = merge on top of current settings, False = reset to defaults first then apply.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
input_settings * | object | |
overlay | boolean |
get_input_mute
Get an input's mute state.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_mute
Mute or unmute an input.
| Parameter | Type | Description |
|---|---|---|
input_muted * | boolean | |
input_name * | string |
toggle_input_mute
Toggle an input's mute state.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
get_input_volume
Get an input's volume as both a linear multiplier and dB.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_volume
Set an input's volume — pass exactly one of volume_db or volume_mul. Args: input_name: Name of the input. volume_db: Volume in dB, range -100..26. volume_mul: Volume as a linear multiplier, range 0..20.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
volume_db | ||
volume_mul |
get_input_audio_balance
Get an input's stereo balance (0.0 full left .. 1.0 full right, 0.5 center).
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_audio_balance
Set an input's stereo balance. Args: input_name: Name of the input. balance: 0.0 (full left) to 1.0 (full right), 0.5 = center.
| Parameter | Type | Description |
|---|---|---|
balance * | number | |
input_name * | string |
get_input_audio_sync_offset
Get an input's audio sync offset in milliseconds (can be negative).
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_audio_sync_offset
Set an input's audio sync offset — use to fix audio/video drift. Args: input_name: Name of the input. offset_ms: Offset in milliseconds, range -950..20000.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
offset_ms * | number |
get_input_audio_monitor_type
Get an input's monitoring mode (none / monitor-only / monitor-and-output).
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_audio_monitor_type
Set an input's monitoring mode. Args: input_name: Name of the input. monitor_type: One of OBS_MONITORING_TYPE_NONE, OBS_MONITORING_TYPE_MONITOR_ONLY, OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
monitor_type * | string |
get_input_audio_tracks
Get which of the 6 audio mixer tracks this input is routed to.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_audio_tracks
Set which audio mixer tracks an input is routed to. Args: input_name: Name of the input. audio_tracks: Object like {"1": true, "2": false, ...} for tracks 1-6.
| Parameter | Type | Description |
|---|---|---|
audio_tracks * | object | |
input_name * | string |
get_input_deinterlace_mode
Get an input's deinterlace mode. Async inputs only (capture cards, etc).
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_deinterlace_mode
Set an input's deinterlace mode. Args: input_name: Name of the input. mode: One of OBS_DEINTERLACE_MODE_DISABLE, _DISCARD, _RETRO, _BLEND, _BLEND_2X, _LINEAR, _LINEAR_2X, _YADIF, _YADIF_2X.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
mode * | string |
get_input_deinterlace_field_order
Get an input's deinterlace field order. Async inputs only.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_input_deinterlace_field_order
Set an input's deinterlace field order. Args: input_name: Name of the input. field_order: OBS_DEINTERLACE_FIELD_ORDER_TOP or _BOTTOM.
| Parameter | Type | Description |
|---|---|---|
field_order * | string | |
input_name * | string |
get_input_properties_list_property_items
Get the items of a dynamic list property on an input — e.g. the available displays for a display-capture source. Args: input_name: Name of the input. property_name: Name of the list property.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
property_name * | string |
press_input_properties_button
Press a button in an input's properties — e.g. "refreshnocache" to reload a browser source. Args: input_name: Name of the input. property_name: Name of the button property to press.
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
property_name * | string |
get_media_input_status
Playback state (playing/paused/stopped/buffering/ended/error), duration, and cursor position of a media source.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
set_media_input_cursor
Seek a media source to an absolute position. No bounds checking. Args: input_name: Name of the media input. cursor_ms: Position in milliseconds.
| Parameter | Type | Description |
|---|---|---|
cursor_ms * | integer | |
input_name * | string |
offset_media_input_cursor
Seek a media source relative to its current position. No bounds checking. Args: input_name: Name of the media input. offset_ms: Milliseconds to offset by (negative = seek backward).
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
offset_ms * | integer |
trigger_media_input_action
Trigger a transport action on a media source. Args: input_name: Name of the media input. action: One of OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY, _PAUSE, _STOP, _RESTART, _NEXT, _PREVIOUS.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
input_name * | string |
get_virtual_cam_status
Whether the virtual camera output is active.
toggle_virtual_cam
Toggle the virtual camera on/off.
start_virtual_cam
Start the virtual camera.
stop_virtual_cam
Stop the virtual camera.
get_replay_buffer_status
Whether the replay buffer is active.
toggle_replay_buffer
Toggle the replay buffer on/off.
start_replay_buffer
Start the replay buffer.
stop_replay_buffer
Stop the replay buffer.
save_replay_buffer
Save the last N seconds from the replay buffer to disk — the "instant replay" clip-save action.
get_last_replay_buffer_replay
File path of the last replay buffer save.
get_output_list
List every registered OBS output (stream, record, virtualcam, replay buffer, and any plugin-added outputs).
get_output_status
Detailed status of a named output: active/reconnecting, timecode, duration, congestion, bytes sent, frame counts.
| Parameter | Type | Description |
|---|---|---|
output_name * | string |
toggle_output
Toggle a named output on/off.
| Parameter | Type | Description |
|---|---|---|
output_name * | string |
start_output
Start a named output.
| Parameter | Type | Description |
|---|---|---|
output_name * | string |
stop_output
Stop a named output.
| Parameter | Type | Description |
|---|---|---|
output_name * | string |
get_output_settings
Get a named output's settings object.
| Parameter | Type | Description |
|---|---|---|
output_name * | string |
set_output_settings
Set a named output's settings object.
| Parameter | Type | Description |
|---|---|---|
output_name * | string | |
settings * | object |
clean_audio_input
Set up a standard mic-cleanup filter chain in one call: Noise Gate -> Noise Suppression -> Compressor, in that order (order matters — gate first cuts room noise between words, suppression reduces steady background hiss while you're talking, compressor evens out what's left). Skips any filter kind that already exists on the input by that name instead of duplicating it. Removing a stage later is a normal remove_source_filter call — this only handles the one-shot setup. Args: input_name: Name of the mic/audio input to clean…
| Parameter | Type | Description |
|---|---|---|
input_name * | string | |
compressor | boolean | |
compressor_ratio | number | |
compressor_threshold_db | number | |
gate | boolean | |
gate_close_threshold_db | number | |
gate_open_threshold_db | number | |
suppression | boolean | |
suppression_method | string |
diagnose_av_health
Diagnose why a stream/recording might be dropping frames or stuttering — pulls GetStats + GetStreamStatus + GetRecordStatus in one call and interprets the ratios instead of leaving the AI to fetch three things and do the arithmetic itself. The three numbers that actually matter, and what each one means: - renderSkippedFrames/renderTotalFrames high: OBS's render thread can't keep up with your scene (too many sources/filters, canvas resolution too high, or GPU-bound). Fix: lower canvas resolution, cut filters, simplify the…
get_scene_item_list
List every scene item (placed source) in a scene.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
get_group_scene_item_list
Like get_scene_item_list, but for a group (OBS groups are broken under the hood — prefer nested scenes over groups where possible).
| Parameter | Type | Description |
|---|---|---|
group_name * | string |
get_scene_item_id
Find a scene item's numeric ID by the source name it references. Args: scene_name: Scene or group to search. source_name: Name of the source to find. search_offset: Matches to skip. -1 = last (topmost) match.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string | |
source_name * | string | |
search_offset | integer |
get_scene_item_source
Get the source name/UUID a scene item references.
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
create_scene_item
Add an existing source to a scene as a new scene item. Args: scene_name: Scene to add the item to. source_name: Existing source (input) to place. scene_item_enabled: Whether it starts visible.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string | |
source_name * | string | |
scene_item_enabled | boolean |
remove_scene_item
Remove a scene item from a scene (does not delete the underlying source).
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
duplicate_scene_item
Duplicate a scene item, copying its transform/crop, optionally into a different scene. Args: scene_name: Scene the item is currently in. scene_item_id: Numeric ID of the item to duplicate. destination_scene_name: Target scene; defaults to the source scene.
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string | |
destination_scene_name | string |
get_scene_item_transform
Get a scene item's position, scale, rotation, and crop.
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
set_scene_item_transform
Set a scene item's position/scale/rotation/crop. Args: scene_name: Scene the item is in. scene_item_id: Numeric ID of the item. transform: Object with any of positionX/positionY, rotation, scaleX/scaleY, alignment, boundsType/boundsAlignment/ boundsWidth/boundsHeight, cropLeft/Right/Top/Bottom.
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string | |
transform * | object |
get_scene_item_enabled
Get whether a scene item is currently visible (shown/hidden, not mute).
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
set_scene_item_enabled
Show or hide a scene item. Args: scene_name: Scene the item is in. scene_item_id: Numeric ID of the item. enabled: True = visible, False = hidden.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
scene_item_id * | integer | |
scene_name * | string |
get_scene_item_locked
Get a scene item's lock state (locked items can't be moved/resized in the UI).
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
set_scene_item_locked
Lock or unlock a scene item.
| Parameter | Type | Description |
|---|---|---|
locked * | boolean | |
scene_item_id * | integer | |
scene_name * | string |
get_scene_item_index
Get a scene item's stacking position (0 = bottom of the source list).
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
set_scene_item_index
Reorder a scene item's stacking position (z-order). Args: scene_name: Scene the item is in. scene_item_id: Numeric ID of the item. index: New position, >= 0 (0 = bottom of the source list).
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
scene_item_id * | integer | |
scene_name * | string |
get_scene_item_blend_mode
Get a scene item's blend mode.
| Parameter | Type | Description |
|---|---|---|
scene_item_id * | integer | |
scene_name * | string |
set_scene_item_blend_mode
Set a scene item's blend mode. Args: scene_name: Scene the item is in. scene_item_id: Numeric ID of the item. blend_mode: One of OBS_BLEND_NORMAL, _ADDITIVE, _SUBTRACT, _SCREEN, _MULTIPLY, _LIGHTEN, _DARKEN.
| Parameter | Type | Description |
|---|---|---|
blend_mode * | string | |
scene_item_id * | integer | |
scene_name * | string |
get_canvas_list
List all canvases in OBS (multi-canvas is a newer OBS feature; most setups only have the main canvas).
get_scene_list
List every scene, plus the current program and preview scene names.
get_group_list
List all groups (OBS treats groups as a special kind of scene).
get_current_program_scene
The scene currently live on Program (what viewers see).
set_current_program_scene
Switch the live Program scene — the core "cut to this scene" action. Args: scene_name: Exact scene name (see get_scene_list).
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
get_current_preview_scene
The scene currently loaded in Preview. Only meaningful in studio mode.
set_current_preview_scene
Load a scene into Preview (studio mode only) — stage it before transitioning to Program with trigger_studio_mode_transition. Args: scene_name: Exact scene name.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
create_scene
Create a new, empty scene. Args: scene_name: Name for the new scene.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
remove_scene
Delete a scene. Args: scene_name: Name of the scene to remove.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
set_scene_name
Rename a scene. Args: scene_name: Current name of the scene. new_scene_name: New name.
| Parameter | Type | Description |
|---|---|---|
new_scene_name * | string | |
scene_name * | string |
get_scene_transition_override
Get the transition overridden for a specific scene, if any. Args: scene_name: Name of the scene.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string |
set_scene_transition_override
Override which transition (and/or duration) is used when switching INTO this specific scene, instead of the global current transition. Args: scene_name: Name of the scene. transition_name: Transition to use, or None to clear the override. transition_duration_ms: Duration override in ms (50-20000), or None to clear.
| Parameter | Type | Description |
|---|---|---|
scene_name * | string | |
transition_duration_ms | ||
transition_name |
get_source_active
Check whether a source (input or scene) is currently showing in Program (videoActive) and/or visible anywhere in the UI (videoShowing). Args: source_name: Name of the input or scene.
| Parameter | Type | Description |
|---|---|---|
source_name * | string |
get_source_screenshot
Get a Base64-encoded screenshot of a source (input or scene) — use this to actually SEE what's on stream. Check get_version's supportedImageFormats for valid image_format values on this OBS build. Args: source_name: Name of the input or scene to capture. image_format: e.g. "png", "jpg". image_width/image_height: Optional scale-to-fit dimensions (8-4096). Omit to use the source's native resolution. image_compression_quality: 0 (max compression) to 100 (uncompressed), -1 for format default.…
| Parameter | Type | Description |
|---|---|---|
source_name * | string | |
image_compression_quality | integer | |
image_format | string | |
image_height | ||
image_width |
save_source_screenshot
Save a screenshot of a source (input or scene) directly to disk. Args: source_name: Name of the input or scene to capture. image_file_path: Absolute path to save to, e.g. C:/renders/shot.png. image_format: e.g. "png", "jpg". image_width/image_height: Optional scale-to-fit dimensions (8-4096). image_compression_quality: 0 (max compression) to 100 (uncompressed), -1 for format default.
| Parameter | Type | Description |
|---|---|---|
image_file_path * | string | |
source_name * | string | |
image_compression_quality | integer | |
image_format | string | |
image_height | ||
image_width |
get_stream_status
Stream output status: active/reconnecting, timecode, duration, congestion, bytes sent, skipped/total frames.
toggle_stream
Toggle the stream on/off.
start_stream
Go live. Requires stream service settings to already be configured (see config_tools.set_stream_service_settings).
stop_stream
End the stream.
send_stream_caption
Send CEA-608 caption text over the live stream output. Args: caption_text: Caption text to send.
| Parameter | Type | Description |
|---|---|---|
caption_text * | string |
get_record_status
Record output status: active, paused, timecode, duration, bytes written.
toggle_record
Toggle recording on/off.
start_record
Start recording to disk (see config_tools.get/set_record_directory for where files land).
stop_record
Stop recording. Returns the saved file's path.
toggle_record_pause
Toggle pause on the active recording.
pause_record
Pause the active recording.
resume_record
Resume a paused recording.
split_record_file
Split the current recording into a new file right now — useful for keeping individual segments a manageable size on long streams.
create_record_chapter
Add a chapter marker to the file currently being recorded. Only supported on Hybrid MP4 output as of OBS 30.2.0. Args: chapter_name: Optional name for the chapter marker.
| Parameter | Type | Description |
|---|---|---|
chapter_name | string |
get_transition_kind_list
List every transition kind this OBS install supports (Cut, Fade, Stinger, etc).
get_scene_transition_list
List every configured transition and which one is current.
get_current_scene_transition
Full detail on the current transition: kind, duration, whether it's fixed-duration, and its settings.
set_current_scene_transition
Make a transition the active one for the next scene switch. Args: transition_name: Name of the transition to activate.
| Parameter | Type | Description |
|---|---|---|
transition_name * | string |
set_current_scene_transition_duration
Set the duration of the current transition, if it isn't fixed-duration. Args: duration_ms: Duration in milliseconds, 50-20000.
| Parameter | Type | Description |
|---|---|---|
duration_ms * | integer |
set_current_scene_transition_settings
Configure the current transition (e.g. a Stinger's video file path). Args: settings: Settings object for the transition. overlay: True = merge on top of current settings, False = replace.
| Parameter | Type | Description |
|---|---|---|
settings * | object | |
overlay | boolean |
get_current_scene_transition_cursor
Current transition progress, 0.0-1.0. Returns 1.0 when no transition is active.
trigger_studio_mode_transition
Trigger the current transition — same as clicking the Transition button in studio mode. Cuts Preview to Program.
set_tbar_position
Set the T-bar position for manual transition scrubbing. Args: position: 0.0-1.0. release: Set False only if you're about to send another position update immediately after this one.
| Parameter | Type | Description |
|---|---|---|
position * | number | |
release | boolean |
get_studio_mode_enabled
Whether studio mode (separate Preview/Program) is enabled.
set_studio_mode_enabled
Enable or disable studio mode.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean |
open_input_properties_dialog
Open an input's Properties dialog in the OBS UI.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
open_input_filters_dialog
Open an input's Filters dialog in the OBS UI.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
open_input_interact_dialog
Open an input's Interact dialog in the OBS UI.
| Parameter | Type | Description |
|---|---|---|
input_name * | string |
get_monitor_list
List connected monitors (for opening a projector on one).
open_video_mix_projector
Open a fullscreen or windowed projector for Preview/Program/Multiview. Args: video_mix_type: OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW, _PROGRAM, or _MULTIVIEW. monitor_index: Monitor to open fullscreen on (see get_monitor_list), -1 for windowed. projector_geometry: Qt-base64 window geometry for windowed mode; mutually exclusive with monitor_index.
| Parameter | Type | Description |
|---|---|---|
video_mix_type * | string | |
monitor_index | integer | |
projector_geometry | string |
open_source_projector
Open a fullscreen or windowed projector for a specific source. Args: source_name: Name of the source (input or scene). monitor_index: Monitor to open fullscreen on, -1 for windowed. projector_geometry: Qt-base64 window geometry for windowed mode.
| Parameter | Type | Description |
|---|---|---|
source_name * | string | |
monitor_index | integer | |
projector_geometry | string |