Show or hide a source
set_source_visibilityControl source visibility in a scene: show, hide, or toggle a source on one or both canvases. Use source_id, optionally with format and scene_id, and get the updated state.
Instructions
Show, hide, or toggle a source in a scene. Omit 'visible' to toggle. Applies to both canvases unless format narrows it. A source_id from another scene resolves to this scene's matching instance (same device or name). Returns the new state.
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_id": "<source_id>"
},
"name": "set_source_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Canvas to affect (default both). | |
| visible | No | Omit to toggle. | |
| scene_id | No | Scene (default: active scene). | |
| source_id | Yes | From list_sources. |