Skip to content

Reference Script Functions Slobs

Kristopher Barrantes edited this page Nov 5, 2026 · 3 revisions

Streamlabs Desktop script functions

Also on the Cuebot Docs site.

Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.

A Run Python code step in the action editor

slobs.call

Sends any Remote Control command to Streamlabs Desktop and gives back its answer. For advanced users. Fails with an error when Streamlabs Desktop is not connected.

Value In Python What to put in
resource resource The part of Streamlabs Desktop to talk to, like "ScenesService" or "StreamingService". Needed.
method method The command name, like "getScenes" or "toggleStreaming". Needed.
args args Optional. A list of values the command needs, like ["Gameplay"].

Gives back: Streamlabs Desktop's answer for that command.

C#

var answer = await Cb.Call("slobs.call", new { resource = "ScenesService", method = "getScenes" });

Python

answer = cb.slobs_call(resource="ScenesService", method="getScenes")

slobs.isConnected

Checks whether Cuebot is connected to Streamlabs Desktop right now. Use it before slobs.call to skip the call when Streamlabs Desktop is closed.

Gives back: true when it is connected, otherwise false.

C#

var answer = await Cb.Call("slobs.isConnected");

Python

answer = cb.slobs_is_connected()

Clone this wiki locally