Create Input (Source)
obs_create_inputCreates a new OBS input and adds it to a specified scene with configurable kind, settings, and visibility. Fails if an input with the same name already exists.
Instructions
Create a new input and place it in a scene. Get valid kinds from obs_list_input_kinds. Fails if an input with that name exists. Example: kind 'image_source' with settings {"file": "C:/overlays/logo.png"}.
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>",
"input_name": "<input_name>",
"input_kind": "<input_kind>"
},
"name": "obs_create_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Whether the new source is visible in the scene | |
| input_kind | Yes | Kind of input, e.g. 'game_capture', 'monitor_capture', 'image_source', 'text_gdiplus_v3', 'browser_source' | |
| input_name | Yes | Name for the new input | |
| scene_name | Yes | Scene to add the new input to | |
| input_settings | No | Settings as a JSON object. Keys depend on the kind; read the current ones first |