Switch Scene
obs_set_current_sceneSwitch the active OBS scene to control what is recorded and streamed, or target the studio-mode preview instead. Specify an exact scene name and whether to change the program or preview output.
Instructions
Switch to a scene. By default this changes the program scene, which is what gets recorded and streamed. With target='preview' it changes the studio-mode preview instead (studio mode must be on).
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_set_current_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | 'program' is what is recorded and streamed; 'preview' is the studio-mode preview | program |
| scene_name | Yes | Exact scene name, as returned by obs_list_scenes |