Reorder source in scene
set_source_indexChange a source's stacking order in an OBS scene. Set index to move it back or forward, with 0 at the back and higher numbers on top.
Instructions
Change the stacking order (z-order) of a source in a scene. Index 0 is at the back; higher indexes are drawn on top. Example: 'Send my webcam to the front in the Coding scene.'
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": {
"source_name": "<source_name>",
"scene_name": "<scene_name>",
"index": "<index>"
},
"name": "set_source_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| scene_name | Yes | ||
| source_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |