obs_set_source_visible
Show or hide a source in an OBS scene by setting its visibility to true or false. Use it to adjust overlays, cameras, or media elements on demand with the scene item ID.
Instructions
Show or hide one source inside a scene (e.g. drop the overlay, hide a camera).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sceneName": "<sceneName>",
"sceneItemId": "<sceneItemId>",
"visible": "<visible>"
},
"name": "obs_set_source_visible"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visible | Yes | true = show, false = hide. | |
| sceneName | Yes | Scene containing the source. | |
| sceneItemId | Yes | Item ID from obs_list_sources_in_scene. |