Remove a Source from a Scene
obs_remove_scene_itemRemove a source from a specific OBS scene while keeping the source available to other scenes. Use only when the user asks to remove it, not to hide it temporarily.
Instructions
Remove one source from one scene. The source itself still exists if other scenes use it. To hide it temporarily, use obs_set_scene_item_enabled instead. Call only when the user asked to remove it.
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": {
"scene_name": "<scene_name>"
},
"name": "obs_remove_scene_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_name | Yes | Exact scene name, as returned by obs_list_scenes | |
| source_name | No | Source name, used to look the item up when scene_item_id is not given | |
| scene_item_id | No | Scene item id from obs_list_scene_items. Takes precedence over source_name |